Skip to main content

Search and Top Navigation

#6166 closed bug (worksforme)

Opened October 09, 2010 07:12AM UTC

Closed October 09, 2010 01:24PM UTC

Last modified October 11, 2012 09:15PM UTC

Cross Server Autocomplete Not Working in IE 8

Reported by: suresh.tech Owned by:
Priority: major Milestone:
Component: ui.autocomplete Version: 1.8.5
Keywords: Cc:
Blocked by: Blocking:
Description

Hi,

$( "#city" ).autocomplete({

source: function( req, response ) {

url=AUTOCOMPLETE_URL;

url=url+"&q="+req.term

$.ajax({

url: url,

dataType: "jsonp",

success: function( data ) {

var results = [];

results= processResults(data,results);

response(results);

}

});

},

minLength: 3

});

function processResults(data,results){

$(data.items[0].value).find('Location').each(function() {

var name = $.trim($(this).find('Name').text());

results[results.length] = {

'label':name,

'value': name

}

});

return results

}

This code perfectly in firefox, safari, chrome but it fails in IE 8,

i tried to debug it, seems response is getting correctly from the server, upto the search script it works perfect but on this code this.response = function() {

return b._response.apply(b, arguments)

};

b._response.apply seems undefined,

Please let me know is it bug in autocomplete

Attachments (0)
Change History (2)

Changed October 09, 2010 01:24PM UTC by scottgonzalez comment:1

resolution: → worksforme
status: newclosed

JSONP requests inside autocomplete work fine cross-browser: http://jsbin.com/iyigi3/edit

Please use the forums for help.

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:2

milestone: TBD

Milestone TBD deleted