document.write() outputs to the "current parsed point" in your main
HTML. Since you're trying to so it in an info window, your HTML has
already been parsed, so it gets written after the </html> tag of your
page, which is not what you want.
You might need to do something like this in inline Javscript to cause
the information to be displayed inside a hidden div.
<div id="SameTime" style="visibility:hidden">
<script>
writeSametimeLink(label, "", true, "text:no")
</script>
</div>
Then, when you construct your infowindow, read it like this:
html += document.getElementById("SameTime").innerHTML;
--
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---