Opened 8 years ago

Closed 8 years ago

Last modified 6 years ago

#6166 closed bug (worksforme)

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

Change History (2)

comment:1 Changed 8 years ago by Scott González

Resolution: worksforme
Status: newclosed

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

Please use the forums for help.

comment:2 Changed 6 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.