Skip to main content

Bug Tracker

Side navigation

#8127 closed bug (duplicate)

Opened February 01, 2011 03:58PM UTC

Closed February 01, 2011 05:32PM UTC

Last modified March 13, 2012 07:00PM UTC

$.ajax does not work on local machine

Reported by: anonymous Owned by: anonymous
Priority: high Milestone: 1.5.1
Component: ajax Version: 1.5
Keywords: Cc:
Blocked by: Blocking:

In IE 6,7,8,9 requesting files using $.ajax on a file on the local machine with a path "file:///" does not work. It returns with error "Unknown".

In jQuery 1.4.4 this worked as long as the js execution context was also from the local machine

Attachments (0)
Change History (6)

Changed February 01, 2011 04:01PM UTC by comment:1

I should note as well that I am using absolute paths. For example file:///c:/foo.html

Changed February 01, 2011 05:11PM UTC by addyosmani comment:2

owner: → anonymous
status: newpending

Could you please supply us with a reduced test case so we can see what code you're using to achieve this? - IE has some known gotchas when it comes to local file access but I can't advise further until I see what you've written.

Because it's local, feel free to send us over a file (however still works - we can always just copy the code out ourselves).

Changed February 01, 2011 05:32PM UTC by danheberden comment:3

_comment0: 81296581564712239
resolution: → duplicate
status: pendingclosed

Changed February 01, 2011 05:32PM UTC by danheberden comment:4

Duplicate of #8125.

Changed February 01, 2011 08:57PM UTC by jitter comment:5

component: unfiledajax
milestone: 1.next1.5.1
priority: undecidedhigh

Changed February 02, 2011 06:37AM UTC by anonymous comment:6

There's no specific code need, just the standaard $.get() and $.ajax() return "unknown".