ah, silly IE - what a burden you are. the thing about it is that shouldn’t be a problem because I’m using the addDOMLoadEvent() to run the script after the page completes loading, not inline.
* My map works in Firefox but I get “Operation Aborted” errors in IE!
These errors are produced in IE when the javascript tries to change the page before it has completed rendering. There are 3 common ways to solve this problem:
1. move all the javascript to the <head> of the document and call a makeMap() function which initializes the Google Map in the onload handler (in the <body> tag, <body onload=“makeMap();”>). The onload handler is executed after the page finishes loading. thread1 thread2
2. put all the javascript at the end of the <body> (just before the </body> tag) see this message.
3. a variation of #1, use a setTimeout to delay the processing of the map code until the page has finished rendering. see this message.
4. (variation of 1) use window.onload. Allows multiple onload handlers, see Doug Henderson’s page at multiple onload handlers. This is the way that was used to fix the operation aborted error on the Get_Lon_Lat page here.
I hate IE as well - I’m trying to get around the disappearing text bug - I can’t use postition:relative in my CSS because it breaks my layout - so there are large portions of my text that simply don’t show up in IE6 at all. I can’t stand IE.
@The Pie Man: Alright, i’ve pulled just about every hair out of my head over this one and still came up empty. I’ve tried every conceivable fix in the Google Groups and implemented all kinds of samples, all of which gave me the same blank grey box. So I went to Tools » Internet Options and added my domain as a “Trusted Site” under Security, and viola, the map started working. Don’t know why, but go ahead and try that. I’ve also made some fixes for IE in v103, so also download that.
@supersusie: Zoom’s are now remembered. If you have one point, it will remember that one point’s zoom. If you have multiple points, it will use the furthest out zoom. If that doesn’t show all the points, it will use the necessary zoom to show all the points.
@The Pie Man: Alright, i’ve pulled just about every hair out of my head over this one and still came up empty. I’ve tried every conceivable fix in the Google Groups and implemented all kinds of samples, all of which gave me the same blank grey box. So I went to Tools » Internet Options and added my domain as a “Trusted Site” under Security, and viola, the map started working. Don’t know why, but go ahead and try that. I’ve also made some fixes for IE in v103, so also download that.
@supersusie: Zoom’s are now remembered. If you have one point, it will remember that one point’s zoom. If you have multiple points, it will use the furthest out zoom. If that doesn’t show all the points, it will use the necessary zoom to show all the points.
Have fun!
Thanks Mark for all your work - you’re a backbone of the EE community here. Using v1.03 IE6 doesn’t crash when loading a page with a map - yay! Unfortunately the map doesn’t show, but at least the page shows… I tried the trusted sites trick to no effect. I’m either going to just leave it and let IE6 users suffer or use PHP to detect the user agent and only serve up maps for people not on IE6. Not sure which at this point.
Regarding the map now showing in the edit window - I turned off all PHP debugging output in the prefs and it shows fine in the edit window now (this was causing me some issues on a different module for a bit).
Thanks again Mark!
EDIT - so what’s the deal with the subscriptions not emailing out notices half the time? I just checked in here by chance not thinking anything new had been posted… :(
@The Pie Man: If your using the extension to generate the map on the front end you may want to try hardcoding the map and use the “_raw” tag to get the points. It could be something I’m doing in the extension.
OH!!! and for the subscription thing, i just figured this out. in your email preferences you’ll want to turn off “smart subscriptions”. that says to only email you if you’ve visited the thread, meaning if you don’t click the link in each email you get you’ll stop getting emails.
I pulled the script into the head, and called it as a function onload. It doesn’t give the illegal operation error and redirect the browser to an error page, but the map doesn’t show. Doubt that helps but I figured I’d share…
Wait wait - I lied. I cludged it up initially. Pulling it into the head and calling it as a function onload does work. Map shows fine and the browser doesn’t crash.
It isn’t important but dragging the marker around in the publish or edit window no longer works with 1.04 (assuming it didn’t with 1.03 as well). Tried it in FF and Safari on OS X. Like I said no biggie but it was fun (I was looking forward to that little extra pizzaz when training the client on their new site). :D