Abortar la solicitud jQuery JSONP arrojará un error
Estoy haciendo un complemento simple de autosugestión (autocompletador) con jQuery. Lamentablemente tengo que usar jsonp. Está bien y funciona, pero cuando estoy cancelando la solicitud arrojará un error.
Uncaught TypeError: Property 'jQuery171036404498340561986_1330693563756' of object [object Window] is not a function
Hay código
if(xhr) {xhr.abort()};
xhr = $.ajax({
url: "someurl/getmedata",
type: 'get',
dataType: 'jsonp',
data: {q: "query"},
success: function(results) {},
error: function() {}
})
La forma clásica con json, xml u otra solicitud funciona bien.
¿Alguna sugerencia?