From f85ea09625a9cd1040ac64919cdeed3a6e4eddd8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=CC=88rn=20Zaefferer?= Date: Wed, 29 Jan 2014 15:12:59 +0100 Subject: [PATCH] Autocomplete: Update remote-jsonp demo with working geo webservice The previous webservice now requires user credentials. The new one is also in use in a jQuery Mobile demo. Fixes #9764 (cherry picked from commit d4865dcbcdccdce59f07b324f230a1f1991aa39d) --- demos/autocomplete/remote-jsonp.html | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/demos/autocomplete/remote-jsonp.html b/demos/autocomplete/remote-jsonp.html index a2b4cc4e9..7fb75d1b1 100644 --- a/demos/autocomplete/remote-jsonp.html +++ b/demos/autocomplete/remote-jsonp.html @@ -27,21 +27,13 @@ $( "#city" ).autocomplete({ source: function( request, response ) { $.ajax({ - url: "http://ws.geonames.org/searchJSON", + url: "http://gd.geobytes.com/AutoCompleteCity", dataType: "jsonp", data: { - featureClass: "P", - style: "full", - maxRows: 12, - name_startsWith: request.term + q: request.term }, success: function( data ) { - response( $.map( data.geonames, function( item ) { - return { - label: item.name + (item.adminName1 ? ", " + item.adminName1 : "") + ", " + item.countryName, - value: item.name - } - })); + response( data ); } }); }, -- 2.39.5