Opened 10 years ago
Closed 10 years ago
#13096 closed bug (notabug)
No transport error while getting XML data from live HTTP url
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.8.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hello friends,
I am trying to get XML data from http url using jQuery $.ajax call but i am not able to get the success response from the server and it always saw me a No transport error.
Here is my $.ajax call code snippet:
$.ajax({ type : "GET", dataType : "xml", url : "http://vrsspl.com/SKU/phone_calls.xml", success : function(response, textStatus, jqXHR) { alert("Success-response: " + response + "status: " + textStatus + "jqXHR: " + jqXHR); }, crossDomain : true, contentType : "application/x-www-form-urlencoded", async : true, error : function(jqXHR, textStatus, errorThrown) { alert("jqXHR: " + jqXHR.status + " status: " + textStatus + " error: " + errorThrown); } });
When i do some googling at that time i have suggested to do this jQuery.support.cors = true; but not succeeded in this .
Any help on this is highly appreciated.
Thanks, jalp.
Note: See
TracTickets for help on using
tickets.
This is not a bug report. Please ask for help on a forum.