$.Ajax request is not working in Chrome
I'm really having trouble to put it to work in Chrome. It runs great in IE and Firefox.
Here is the code:
- $.ajax({url: "../requests/get_xml_oid.php?oid=" + key + "&host=" + Servidor + "&dti="
- + document.getElementById("dtinicio").value
- + "&dtf="
- + document.getElementById("dtfim").value,
- method: 'GET',
- success: onDataReceived,
- error: function(XMLHttpRequest, textStatus, errorThrown) {
- alert(textStatus+" - "+errorThrown);
- }
- });
The return of get_xml_oid.php is in XML.
Chrome Error:
- Uncaught TypeError: Object #<a Document> has no method 'search'
What's going on?
Thanks,
Keller