
Quote from asmat on March 3, 2019, 11:55 pmI wrote into container HTML code....
this html code includes a source of a picture ... it's work properly in a computer platform ...
but after published as Android, the HTML code missed the picture...
what's wrong here?
I wrote into container HTML code....
this html code includes a source of a picture ... it's work properly in a computer platform ...
but after published as Android, the HTML code missed the picture...
what's wrong here?


Quote from asmat on March 4, 2019, 10:29 pmThis is the html code :
<html>
<head>
</head>
<body>
<img src="D:/myapp/preloader.gif" width="100%">
</body>
</html>
This is the html code :
<html>
<head>
</head>
<body>
<img src="D:/myapp/preloader.gif" width="100%">
</body>
</html>

Quote from luishp on March 5, 2019, 8:01 amPlease do not use absolute paths.
It's very important to use relative paths in order to use our app outside our own computer.
Use this if the image is in the same folder than your app:<img src="./preloader.gif" width="100%">
Please do not use absolute paths.
It's very important to use relative paths in order to use our app outside our own computer.
Use this if the image is in the same folder than your app:
<img src="./preloader.gif" width="100%">

Quote from asmat on March 5, 2019, 8:12 pmIn this time I used a relative path but also it does not work, please look up this image:
https://tinyurl.com/y5c3jdef
In this time I used a relative path but also it does not work, please look up this image:

Quote from luishp on March 5, 2019, 9:04 pmI'm convinced it's a path problem.
Why are you using<img src="../preloader.gif" width="100%">instead of:
<img src="./preloader.gif" width="100%">Or even (more usually):
<img src="./img/preloader.gif" width="100%">I'm quite sure Android will block any attempt to access a folder under the app folder.
I'm convinced it's a path problem.
Why are you using
<img src="../preloader.gif" width="100%">
instead of:
<img src="./preloader.gif" width="100%">
Or even (more usually):
<img src="./img/preloader.gif" width="100%">
I'm quite sure Android will block any attempt to access a folder under the app folder.

Quote from asmat on March 5, 2019, 10:03 pmI try this code also but still it does not work ... and gives the same Error...
I think the VisualNeo web has a problem in the file list.. see this image..
https://tinyurl.com/y3xhhe2s
I try this code also but still it does not work ... and gives the same Error...
I think the VisualNeo web has a problem in the file list.. see this image..

Quote from luishp on March 6, 2019, 8:18 amHave you added the image as an Image object?
If not, have you added the image to Project->Properties->Libraries/Files?Manually added images to the app folder will not be considered by VisualNEO Web.
Have you added the image as an Image object?
If not, have you added the image to Project->Properties->Libraries/Files?
Manually added images to the app folder will not be considered by VisualNEO Web.


Quote from luishp on March 6, 2019, 5:20 pmTake a look at the attached sample.
I know it's a bit difficult to understand where are the files when editing, running or compiling the app.
Normally VisualNEO Web takes care of the files automatically but it can't when they are in HTML.
I hope it helps.There is a better solution using a variable to store the src parameter of an image object and then use it inside the HTML code:
<img src="[imgSrc]">Best regards.
Take a look at the attached sample.
I know it's a bit difficult to understand where are the files when editing, running or compiling the app.
Normally VisualNEO Web takes care of the files automatically but it can't when they are in HTML.
I hope it helps.
There is a better solution using a variable to store the src parameter of an image object and then use it inside the HTML code:
<img src="[imgSrc]">
Best regards.
Uploaded files:

Quote from fmorales on July 3, 2020, 10:11 pmHello. I'm trying to use this same method used in the example to use an embedded jpg file as background-image. In the CSS field of the page I type "./img/myfile.jpg", with and without quotation marks. Also with url('....'), but is not working. How can I do it?
Hello. I'm trying to use this same method used in the example to use an embedded jpg file as background-image. In the CSS field of the page I type "./img/myfile.jpg", with and without quotation marks. Also with url('....'), but is not working. How can I do it?

Quote from luishp on July 4, 2020, 8:04 pm@fmorales please take a look at the attached sample. It uses the exact same method to set the image as the page background-image. Regards.
@fmorales please take a look at the attached sample. It uses the exact same method to set the image as the page background-image. Regards.
Uploaded files:Quote from fmorales on July 4, 2020, 11:31 pmYour example is working, but there are two files included in the app folder:
main.js
style.css
When I compile I don't get that files. I don't know what I'm missing. Without this two files the background doesn't appear.
Your example is working, but there are two files included in the app folder:
main.js
style.css
When I compile I don't get that files. I don't know what I'm missing. Without this two files the background doesn't appear.

Quote from luishp on July 5, 2020, 3:24 pmYou just need to be sure your image is on the "./img" folder in run-time. At compile time VisualNEO Web will copy the file in the appropiate folder automaticaly.
You just need to be sure your image is on the "./img" folder in run-time. At compile time VisualNEO Web will copy the file in the appropiate folder automaticaly.