#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: | ||
Blocked by: | Blocking: |
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 (6)
comment:1 Changed 12 years ago by
Owner: | set to Yomodo |
---|---|
Priority: | undecided → low |
Status: | new → pending |
comment:2 Changed 12 years ago by
Status: | pending → 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 12 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
You're missing a protocol there, e.g., file://
.
comment:4 follow-up: 5 Changed 12 years ago by
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 follow-up: 6 Changed 12 years ago by
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 gotTest.htm
andjquery-1.X.X.min.js
on my desktop for quick testing of various little bits.
I openTest.htm
by double-clicking it.
Test.htm
is trying toajax()
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 Changed 12 years ago by
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)
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?