I have created a plugin and want to display an image in a HS web page. And I am afraid I don't have to much web experience.
Creating page etc works fine but it will not load image. Security reasons maybe?
The image load code is:
stb.Append("<img src=" & ControlChars.Quote + "pricechart.png" & ControlChars.Quote & " width =" & ControlChars.Quote & "1024" & ControlChars.Quote & " height=" & ControlChars.Quote & "480" & ControlChars.Quote & ">")
I have tried to save image in all thinkable folders, as \html\images\pricechart.png and others. Also specifying path in html code.
Strange thing, it was working for a short time, but then I changed the file name, and suddenly it did not work any more.
It might have been that the page was buffered, and I did not close down Chrome at that time. I noticed that later that it was running old code if you did not close between tests.
Also: When you set up a web-page in HS: I assume HS has a build-in web-server. But what is the "home directory" for a web-page? Like for an ASP.NET server it should be C:\inetpub\
So I don't understand how HS is handlig web-pages in this aspect. I assume the image should be saved here?
I appreciate any help would be fine.
Creating page etc works fine but it will not load image. Security reasons maybe?
The image load code is:
stb.Append("<img src=" & ControlChars.Quote + "pricechart.png" & ControlChars.Quote & " width =" & ControlChars.Quote & "1024" & ControlChars.Quote & " height=" & ControlChars.Quote & "480" & ControlChars.Quote & ">")
I have tried to save image in all thinkable folders, as \html\images\pricechart.png and others. Also specifying path in html code.
Strange thing, it was working for a short time, but then I changed the file name, and suddenly it did not work any more.
It might have been that the page was buffered, and I did not close down Chrome at that time. I noticed that later that it was running old code if you did not close between tests.
Also: When you set up a web-page in HS: I assume HS has a build-in web-server. But what is the "home directory" for a web-page? Like for an ASP.NET server it should be C:\inetpub\
So I don't understand how HS is handlig web-pages in this aspect. I assume the image should be saved here?
I appreciate any help would be fine.
Comment