Opened 13 years ago
Closed 13 years ago
#6904 closed bug (invalid)
it seems .load() can not load an external content into a div
Reported by: | rezaoli | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.4.3 |
Component: | ajax | Version: | 1.4.2 |
Keywords: | .load | Cc: | |
Blocked by: | Blocking: |
Description
i wrote a very simple code to check if there is any programming mistake, but it didn't work while ff, safari, and even ie doin' the job. i also test online examples. online examples are working until i download the codes and run locally!
Attachments (3)
Change History (7)
Changed 13 years ago by
Attachment: | loadTest.7z added |
---|
comment:1 Changed 13 years ago by
.load won't load local resources due to security restrictions. What browser are you using?
comment:2 Changed 13 years ago by
Component: | core → ajax |
---|
Using 7zip makes it harder to try the test case...
I've attached the two required files with some slight modifications. It works locally on all browsers except Chrome 5, which is due to this security restriction in Chrome:
http://code.google.com/p/chromium/issues/detail?id=40787
You can start Chrome with a command line option to work around it, but there's nothing jQuery can do to affect it.
comment:3 Changed 13 years ago by
This works for me. What error, if any are you getting? What logs to console in Firefox, IE8 or Safari?
comment:4 Changed 13 years ago by
Priority: | → undecided |
---|---|
Resolution: | → invalid |
Status: | new → closed |
This is not a jQuery bug. If you need to deploy Web applications locally, usually the best thing to do is to include a lightweight web server.
this is a very simple test case