Skip to main content

Bug Tracker

Side navigation

#8669 closed bug (invalid)

Opened March 27, 2011 09:46AM UTC

Closed March 29, 2011 12:47PM UTC

Last modified March 14, 2012 03:46PM UTC

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

Attachments (0)
Change History (6)

Changed March 27, 2011 11:52PM UTC by addyosmani comment:1

owner: → Yomodo
priority: undecidedlow
status: newpending

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?

Changed March 28, 2011 03:57AM UTC by Yomodo comment:2

status: pendingnew

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)

Changed March 29, 2011 12:47PM UTC by dmethvin comment:3

resolution: → invalid
status: newclosed

You're missing a protocol there, e.g., file://.

Changed April 22, 2011 08:38PM UTC by GSerg comment:4

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.

Changed April 22, 2011 09:05PM UTC by anonymous comment:5

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 [comment:4 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.

Changed April 23, 2011 05:37PM UTC by GSerg comment:6

Ouch.

The Bibeault & Katz book covers version 1.2, and that

support
thing was introduced in 1.3.

Thanks, got it now.

Replying to [comment:5 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)