sg

Cuma, Kasım 25, 2005

Re: Adding fields from a database into Info bubble.


Simon,

Check out this page: http://www.admaps.com

It has a proposed xml standard along with a parser. You should be able
to pick out what you need from it.

Basically, to use html in xml you enclose it in CDATA like in:

<infowindow><![CDATA[html for infowindow tags here]]></infowindow>

and read it with:

html =
markers[i].getElementsByTagName("infowindow")[0].firstChild.nodeValue ;

where markers[i] is the parent xml element.

Hope this helps. See the admaps page for a complete and working
example.

-John

http://maps.huge.info

0 Comments:

Yorum Gönder

<< Home


Komik Videolar   islam  şarkı sözleri  yemek tarifleri  gelibolu  huzur   sağlık