I had a similar problem. For this to work in a tag <a> you must add 'return false;' at the end of onclick
minusone a écrit : > Ok crisis averted - found a solution. > > Seems to be a bit of an obscure bug with Google Maps API. > If the GET request originates from an event fired by an HTML element > that is not an INPUT, in this case an IMG encased in <A> tags, then > Google Maps API returns the 500 error. After i had changed the HTML so > rather than having the onclick event of an IMG encased in <A> tags > start off the GET request, the button is now an <input type="image"> > within a FORM, and it's onclick starts the GET request process. > > Hope this helps someone else. > > On Oct 6, 6:33 pm, minusone <[email protected]> wrote: > > Anyone had anything similar to this issue? > > > > When creating a GCLientGeocoder and then calling getLocations() > > everything works fine in Firefox and IE7+, but IE6 returns a 500 > > error. > > > > The address being passed is "6000, Australia". > > I have included HTTP gets in case they may help. > > > > HTTP GET for IE 8 is: > > > > Request Headers Value > > (Request-Line) GET /maps/vp?spn=0.014565,0.028324&z=15&key= > > [user key]&client=gme- > > stellatravel&mapclient=jsapi&vp=-31.953461,115.853654&ev=zi HTTP/1.1 > > Accept */* > > Refererhttp://localhost:3809/TravelsceneAUS/IFrameAgent.aspx?lat=-31.9534613..., > > Australia > > Accept-Language en-US > > User-Agent Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; > > Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR > > 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR > > 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; > > OfficeLivePatch.0.0) > > Accept-Encoding gzip, deflate > > Host maps.google.com > > Connection Keep-Alive > > > > HTTP GET for IE6 is: > > > > Request Headers Value > > (Request-Line) GET /maps?oe=utf-8&file=api&v=2&key=[user key] > > &client=gme-stellatravel HTTP/1.1 > > Accept */* > > Referer http://localhost:3809/TravelsceneAUS/blank.aspx > > Accept-Language en-US > > Accept-Encoding gzip, deflate > > User-Agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT > > 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR > > 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR > > 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; > > OfficeLivePatch.0.0) > > Host maps.google.com > > Connection Keep-Alive > > Cookie > > PREF=ID=41860f7c23da8f93:U=2de30f3880e0a2dd:TM=1254196053:LM=1254196101:S=wwsOpJRwFEkhZVY1; > > NID=27=ss65kKAxbQkE7p4LEadU4win75x18mOt37CqsnBWscSw2di5S2rxp9HJHpw9R8OjLQVLzUKA0j- > > Tjn-7qPSn5LMdA4c6jpOzEZL74M3o394LG4dUABS_eNuX1qHQDX4Z > > > > Any suggestions appreciated. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
