#8127 closed bug (duplicate)
$.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: |
Description
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
Change History (6)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Owner: | set to anonymous |
---|---|
Status: | new → pending |
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 jsFiddle.net still works - we can always just copy the code out ourselves).
comment:3 Changed 12 years ago by
Resolution: | → duplicate |
---|---|
Status: | pending → closed |
comment:5 Changed 12 years ago by
Component: | unfiled → ajax |
---|---|
Milestone: | 1.next → 1.5.1 |
Priority: | undecided → high |
comment:6 Changed 12 years ago by
There's no specific code need, just the standaard $.get() and $.ajax() return "unknown".
I should note as well that I am using absolute paths. For example file:///c:/foo.html