I got a little help from a similar problem on this board [http://
groups.google.com/group/Google-Maps-API/browse_thread/thread/
89ea5fa4e0a0ccb9/05c364940447891d], but I haven't gotten what I need
yet. I'm writing a user script for Greasemonkey or Trixie, one aspect
of which is to open a map in a popup window. I've made plenty of maps
on stand-alone pages, but this is giving me trouble.
I've gotten to the point where the link is added to the target web
page, clicking it causes the popup window will appear & trigger first
alert, but the second alert freezes the entire browser. I'll post it
as a file if I can figure that out, but for now, I'll leave it below,
ugly as it may be. Thanks for any advice you can give me.
=======================
function summaryMap()
{
var popup = window.open('', 'popup',
'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=400');
popup.document.write('<html><head><'+'script type="text/javascript"
src="http://maps.google.com/maps?
file=api&v=2&key=ABQIAAAAnWC0yDYifGNoLe8-
Qj4E6RS-5cYl1jRs5FROpJw30fO0QEUqJRR6tlVbP7hwQapRtm3P4OLIEcFwKA"><'+'/
script></head>');
popup.document.write('<body><div id="canvas" style="width:
100%;height:100%">Under Construction</div><'+'script>alert(1);alert
(GMap2);<'+'/script></body></html>');
}
//Add a map view & table copy links
document.getElementById("myDiv").innerHTML += "<a
href='javascript:summaryMap();'>Map results</a>";
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---