Quote from
Gaev on December 30, 2019, 7:40 pm
@luishp
@asmat
Unfortunately, when using HTML code, VisualNEO Web will only show images with absolute paths. An alternative, although I only recommend it for small images, is using base64 enconded images.
Another option could be to 'change the src property at run time' ...
1) assuming that the images are in the same folder (or relative folder) as your App, use GetAppBaseURL command to compose the absolute path to the the image ... then replace the image's src property
OR
2) use something like SetObjectAttribute "Image1" "src" "./img/imagefile.jpg" (will need to give the image tag a name/id)
Hope these alternatives work.
Please note that the example in the Help file says SetObjectStyle which is incorrect.
@luishp
@asmat
Unfortunately, when using HTML code, VisualNEO Web will only show images with absolute paths. An alternative, although I only recommend it for small images, is using base64 enconded images.
Another option could be to 'change the src property at run time' ...
1) assuming that the images are in the same folder (or relative folder) as your App, use GetAppBaseURL command to compose the absolute path to the the image ... then replace the image's src property
OR
2) use something like SetObjectAttribute "Image1" "src" "./img/imagefile.jpg" (will need to give the image tag a name/id)
Hope these alternatives work.
Please note that the example in the Help file says SetObjectStyle which is incorrect.
asmat has reacted to this post.