3 of 8
3
Geocoding
Posted: 16 February 2007 09:56 AM   [ Ignore ]   [ # 37 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

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.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 16 February 2007 09:58 AM   [ Ignore ]   [ # 38 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  774
Joined  07-18-2006

I just editing my last message - but here’s more:

  *  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.

Profile
 
 
Posted: 17 February 2007 01:00 PM   [ Ignore ]   [ # 39 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  774
Joined  07-18-2006

Mark does the Geocoding map show in the edit window for you?

Profile
 
 
Posted: 17 February 2007 05:16 PM   [ Ignore ]   [ # 40 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  644
Joined  05-16-2004

Mark,

I’m getting ready to recode a site that uses Google Maps: http://www.thinksalmon.com/

Any chance you’ll be producing a version that stores the zoom level?  If so, I’ll switch to your plugin.

TTFN
Travis

 Signature 

Fight spam better with “Defensio for EE,” a free module


Hop Studios Internet Consulting
http://www.hopstudios.com/

Profile
 
 
Posted: 18 February 2007 01:52 PM   [ Ignore ]   [ # 41 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

v103 is now up

@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!

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 19 February 2007 01:46 PM   [ Ignore ]   [ # 42 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  774
Joined  07-18-2006
Mark Huot - 18 February 2007 01:52 PM

v103 is now up

@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… :(

Profile
 
 
Posted: 19 February 2007 01:51 PM   [ Ignore ]   [ # 43 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

@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.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 19 February 2007 02:09 PM   [ Ignore ]   [ # 44 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  774
Joined  07-18-2006

Good idea about hard-coding it - I’ll try that. And thanks for the tip about emails - that was driving me batty!@

Profile
 
 
Posted: 19 February 2007 02:33 PM   [ Ignore ]   [ # 45 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  774
Joined  07-18-2006

Oops - I just tried it in IE6 without trying it in any other browsers. I’m getting errors now in all browsers and the map doesn’t show in any:

Notice: Undefined offset: 2 in /Library/WebServer/Documents/vbsr/door_number_one/extensions/ext.geo.php on line 576

Warning: Division by zero in /Library/WebServer/Documents/vbsr/door_number_one/extensions/ext.geo.php on line 597

Warning: Division by zero in /Library/WebServer/Documents/vbsr/door_number_one/extensions/ext.geo.php on line 597

Profile
 
 
Posted: 19 February 2007 02:37 PM   [ Ignore ]   [ # 46 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

o, this is probably happening because theirs existing data in your field, i’ve updated the ext to 1.0.4 to check for this.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 19 February 2007 02:55 PM   [ Ignore ]   [ # 47 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  774
Joined  07-18-2006

Wow fast!  Thanks Mark - maps are back in all browsers and IE6 is back to illegally operating. Oh well - I’ll try hardcoding and see if that works. smile

Profile
 
 
Posted: 19 February 2007 02:57 PM   [ Ignore ]   [ # 48 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

Let me know if hardcoding it works and we’ll be a little closer to debugging this…

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 19 February 2007 03:31 PM   [ Ignore ]   [ # 49 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  774
Joined  07-18-2006
Mark Huot - 19 February 2007 02:57 PM

Let me know if hardcoding it works and we’ll be a little closer to debugging this…

Nope - still breaks.

Profile
 
 
Posted: 19 February 2007 03:33 PM   [ Ignore ]   [ # 50 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

darn, not what i was hoping for.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 19 February 2007 03:38 PM   [ Ignore ]   [ # 51 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  774
Joined  07-18-2006
Mark Huot - 19 February 2007 03:33 PM

darn, not what i was hoping for.

Yeah I figured :(

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…

Profile
 
 
Posted: 19 February 2007 03:45 PM   [ Ignore ]   [ # 52 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  774
Joined  07-18-2006

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.

Profile
 
 
Posted: 19 February 2007 04:15 PM   [ Ignore ]   [ # 53 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  774
Joined  07-18-2006

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

Profile
 
 
Posted: 09 April 2007 07:34 AM   [ Ignore ]   [ # 54 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  774
Joined  07-18-2006

Can someone go here with IE6 and tell me if it crashes your browser:

http://vbsr.org/index.php/pages/event_detail/event_vbsr_2007_spring_conference/

thanks smile

Profile
 
 
   
3 of 8
3
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64553 Total Logged-in Users: 31
Total Topics: 81156 Total Anonymous Users: 15
Total Replies: 436586 Total Guests: 183
Total Posts: 517742    
Members ( View Memberlist )