Ticket #8669 (closed bug: invalid)
jQuery 1.5.2RC1 - $.get() error: No Transport
| Reported by: | Yomodo | Owned by: | Yomodo |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | unfiled | Version: | 1.5.2rc1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
When using $.get() I now get a "No Transport" error.
Good thing is, I've been able to track down the issue and thus fixing it for my self:
In version 1.5.1 is used a full local path to load .xml files: "D:\Web\Config\..."
To get rid of the "No Transport" error, I now use: "Web\Config\..."
Thus leaving out the "D:\" fixes it.
Regards, Yomodo
Change History
comment:1 Changed 2 years ago by addyosmani
- Owner set to Yomodo
- Priority changed from undecided to low
- Status changed from new to pending
comment:2 Changed 2 years ago by Yomodo
- Status changed from pending to new
A "reduced" test case would be the exact thing I have desribed above with the addition that I mainly use jQuery with .HTA apps, IE only.
With jQuery 1.5.1 I have always used: $.get("D:\Web\Config\data.xml)
jQuery 1.5.2RC1 errors out on this with "No Transport"
The fix that worked for me: $.get("Web\Config\data.xml)
comment:3 Changed 2 years ago by dmethvin
- Status changed from new to closed
- Resolution set to invalid
You're missing a protocol there, e.g., file://.
comment:4 follow-up: ↓ 5 Changed 2 years ago by GSerg
I believe this should be reopened.
Consider the scenario:
I've got Test.htm and jquery-1.X.X.min.js on my desktop for quick testing of various little bits.
I open Test.htm by double-clicking it.
Test.htm is trying to ajax() a web service I've got on my local machine, in VS local web server (
type: "GET", url: "http://localhost:52624/Service1.asmx/Whatever"
).
With jQuery 1.4.4 and earlier, the web service is successfullt consumed.
With jQuery 1.5 and newer, I'm getting "No transport" error.
comment:5 in reply to: ↑ 4 ; follow-up: ↓ 6 Changed 2 years ago by anonymous
I just ran into this and with a little research i found this:
jQuery.support.cors = true; force cross-site scripting (as of jQuery 1.5)
Replying to GSerg:
I believe this should be reopened.
Consider the scenario:
I've got Test.htm and jquery-1.X.X.min.js on my desktop for quick testing of various little bits.
I open Test.htm by double-clicking it.
Test.htm is trying to ajax() a web service I've got on my local machine, in VS local web server (type: "GET", url: "http://localhost:52624/Service1.asmx/Whatever").
With jQuery 1.4.4 and earlier, the web service is successfullt consumed.
With jQuery 1.5 and newer, I'm getting "No transport" error.
comment:6 in reply to: ↑ 5 Changed 2 years ago by GSerg
Ouch.
The Bibeault & Katz book covers version 1.2, and that support thing was introduced in 1.3.
Thanks, got it now.
Replying to anonymous:
I just ran into this and with a little research i found this:
jQuery.support.cors = true; force cross-site scripting (as of jQuery 1.5)
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Thanks for submitting a ticket to the jQuery Bug Tracker. If this is an issue you're suggesting we fix, could you kindly provide us with a reduced test case that reproduces the issue you're describing so we can look into it further?