Skip to main content

Bug Tracker

Side navigation

#5437 closed bug (wontfix)

Opened November 01, 2009 09:53AM UTC

Closed November 07, 2009 03:26PM UTC

Google Maps API requires callback be last in url

Reported by: dDrummer Owned by:
Priority: major Milestone: 1.4
Component: ajax Version: 1.3.2
Keywords: google map api ajax Cc:
Blocked by: Blocking:
Description

I find new bug .ajax() with GoogleMap .

as me mind, This bug was created with changes in Google servise on Friday (30 October).

I use function .ajax() :

function( point, lang, callback ) {
    if( !isDef( lang ) )
        lang = 'en';
    var url = 'http://www.google.com/maps/geo';
$.ajax( {
        type: 'GET',
        url: url,
        dataType: 'jsonp',
		data: 'hl=' + lang + '&output=json&oe=utf-8&ll=' + point.lat() + '%2C' + point.lng() + '&key=' + gApi,
        success: callback
    } );
}

This method create a query

http://www.google.com/maps/geo?hl=uk&output=json&oe=utf-8&ll=51.91716758909015%2C-2.559814453125&key=ABQIAAAAMh37YFK-cSIblJq-Ikj2fxTydweqgRT-bvQSGIh67q-eEGMj2RRMumgCLBg9zDyBSr454HIifu6MqA&callback=jsonp1256910362732&_=1256912883268

But NOW it is not correct !!!

in current google service correct query mast be another 
(WITH CALLBACK parameter in the end of query)
for example:
http://www.google.com/maps/geo?hl=uk&output=json&oe=utf-8&ll=51.91716758909015%2C-2.559814453125&key=ABQIAAAAMh37YFK-cSIblJq-Ikj2fxTydweqgRT-bvQSGIh67q-eEGMj2RRMumgCLBg9zDyBSr454HIifu6MqA&_=1256912883268&callback=jsonp1256910362732
  • it is correct!

CallBack parameter must be last

Please fix this

Attachments (0)
Change History (2)

Changed November 03, 2009 12:36AM UTC by dmethvin comment:1

description: I find new bug .ajax() with GoogleMap . \ as me mind, This bug was created with changes in Google servise on Friday (30 October). \ \ I use function .ajax() : \ function( point, lang, callback ) { \ if( !isDef( lang ) ) \ lang = 'en'; \ var url = 'http://www.google.com/maps/geo'; \ $.ajax( { \ type: 'GET', \ url: url, \ dataType: 'jsonp', \ data: 'hl=' + lang + '&output=json&oe=utf-8&ll=' + point.lat() + '%2C' + point.lng() + '&key=' + gApi, \ success: callback \ } ); \ } \ \ This method create a query \ http://www.google.com/maps/geo?hl=uk&output=json&oe=utf-8&ll=51.91716758909015%2C-2.559814453125&key=ABQIAAAAMh37YFK-cSIblJq-Ikj2fxTydweqgRT-bvQSGIh67q-eEGMj2RRMumgCLBg9zDyBSr454HIifu6MqA&callback=jsonp1256910362732&_=1256912883268 \ \ But NOW it is not correct !!! \ \ in current google service correct query mast be another \ (WITH CALLBACK parameter in the end of query) \ for example: \ http://www.google.com/maps/geo?hl=uk&output=json&oe=utf-8&ll=51.91716758909015%2C-2.559814453125&key=ABQIAAAAMh37YFK-cSIblJq-Ikj2fxTydweqgRT-bvQSGIh67q-eEGMj2RRMumgCLBg9zDyBSr454HIifu6MqA&_=1256912883268&callback=jsonp1256910362732 \ - it is correct! \ \ CallBack parameter must be last \ Please fix thisI find new bug .ajax() with GoogleMap . \ as me mind, This bug was created with changes in Google servise on Friday (30 October). \ \ I use function .ajax() : \ {{{ \ function( point, lang, callback ) { \ if( !isDef( lang ) ) \ lang = 'en'; \ var url = 'http://www.google.com/maps/geo'; \ $.ajax( { \ type: 'GET', \ url: url, \ dataType: 'jsonp', \ data: 'hl=' + lang + '&output=json&oe=utf-8&ll=' + point.lat() + '%2C' + point.lng() + '&key=' + gApi, \ success: callback \ } ); \ } \ }}} \ This method create a query \ {{{ \ http://www.google.com/maps/geo?hl=uk&output=json&oe=utf-8&ll=51.91716758909015%2C-2.559814453125&key=ABQIAAAAMh37YFK-cSIblJq-Ikj2fxTydweqgRT-bvQSGIh67q-eEGMj2RRMumgCLBg9zDyBSr454HIifu6MqA&callback=jsonp1256910362732&_=1256912883268 \ }}} \ But NOW it is not correct !!! \ {{{ \ in current google service correct query mast be another \ (WITH CALLBACK parameter in the end of query) \ for example: \ http://www.google.com/maps/geo?hl=uk&output=json&oe=utf-8&ll=51.91716758909015%2C-2.559814453125&key=ABQIAAAAMh37YFK-cSIblJq-Ikj2fxTydweqgRT-bvQSGIh67q-eEGMj2RRMumgCLBg9zDyBSr454HIifu6MqA&_=1256912883268&callback=jsonp1256910362732 \ }}} \ - it is correct! \ \ CallBack parameter must be last \ Please fix this
priority: criticalmajor
summary: Hi jQuery TeamGoogle Maps API requires callback be last in url

Changed November 07, 2009 03:26PM UTC by john comment:2

resolution: → wontfix
status: newclosed

The fix for this is simple enough, on your end - just specify: cache: false as an option. I'm not sure if we can guarantee that the callback will always be the last arg.