M
Michel Couche
Hello,
I am learning the Google maps API.
I one test I made, I retrieve data from an XLM file and these are injected
via a JScript function into a HTML div tag.
The data are as follows:
XML file
<markers>
....
<marker stationname="XXX" lat="13.745346" lng="100.535073" category="R_IT"
htmltag="Set in the heart of one of Bangkok most prestigious and fashionable
areas, ....." />
</markersV
JScript function
.....
var htmltag = markers.getAttribute("htmltag");
var html = "<b>"+name+"</b><p style='font-family: Verdana, Arial, Helvetica,
sans-serif;font-size: 12px;color: #666699;'>"+htmltag+"</p>";
.....
When used as shown above, I have no problem, HTML code is injected into the
DIV tag as expected. However, I would like to start the htmltag element with
an image tag something like :
<markers>
....
<marker stationname="XXX" lat="13.745346" lng="100.535073" category="R_IT"
htmltag="<img src='Logos/anagarden.png' >Set in the heart of one of Bangkok
most prestigious and fashionable areas, ....." />
</markers>
The use of the image tag screws the page up. I tried the escape caracter,
doubling single or double quotes, ', ... no way to get my code working
(I do not receive error code either)
Thanks in advance for your support
Michel
I am learning the Google maps API.
I one test I made, I retrieve data from an XLM file and these are injected
via a JScript function into a HTML div tag.
The data are as follows:
XML file
<markers>
....
<marker stationname="XXX" lat="13.745346" lng="100.535073" category="R_IT"
htmltag="Set in the heart of one of Bangkok most prestigious and fashionable
areas, ....." />
</markersV
JScript function
.....
var htmltag = markers.getAttribute("htmltag");
var html = "<b>"+name+"</b><p style='font-family: Verdana, Arial, Helvetica,
sans-serif;font-size: 12px;color: #666699;'>"+htmltag+"</p>";
.....
When used as shown above, I have no problem, HTML code is injected into the
DIV tag as expected. However, I would like to start the htmltag element with
an image tag something like :
<markers>
....
<marker stationname="XXX" lat="13.745346" lng="100.535073" category="R_IT"
htmltag="<img src='Logos/anagarden.png' >Set in the heart of one of Bangkok
most prestigious and fashionable areas, ....." />
</markers>
The use of the image tag screws the page up. I tried the escape caracter,
doubling single or double quotes, ', ... no way to get my code working
(I do not receive error code either)
Thanks in advance for your support
Michel