Hi all,

I'm using mapeteria (http://maps.webfoot.com/mapeteria/) customised
slightly to produce coloured world maps. I have done this so far and
the results can be seen here: http://first4quality.co.uk/neogic/maps/

I now want to have custom data displayed in the balloons based on the
colour (threat level) of the country. The problem is that the KML data
is kept in a flat text file and aside from parsing using PHP I can't
change the description dynamically.

What I would like to do is load the correct data in using AJAX however
I can't seem to find any resources about using javascript in the
description tag. I have tried doing so on china in my example above
however the content of the bubble doesn't get changed despite it just
being a simple text replace function (no AJAX yet).

The content of the description tag is:

<![CDATA[
<div id="china-info">Loading...</div>
<script language="javascript">

    document.getElementById("china-info").innerHTML = "This is what we
replaced it with.";

</script>
]]>

Can anyone give me any pointers on why this isn't working?

Thanks in advance,
James
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to