Bug Tracker

Opened 9 years ago

Closed 9 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)

loadTest.7z (23.0 KB) - added by rezaoli 9 years ago.
this is a very simple test case
test-6904.html (599 bytes) - added by dmethvin 9 years ago.
main file
ajax-6904.html (7 bytes) - added by dmethvin 9 years ago.
file loaded by main

Download all attachments as: .zip

Change History (7)

Changed 9 years ago by rezaoli

Attachment: loadTest.7z added

this is a very simple test case

comment:1 Changed 9 years ago by ganeshkrishnan

.load won't load local resources due to security restrictions. What browser are you using?

Changed 9 years ago by dmethvin

Attachment: test-6904.html added

main file

Changed 9 years ago by dmethvin

Attachment: ajax-6904.html added

file loaded by main

comment:2 Changed 9 years ago by dmethvin

Component: coreajax

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 9 years ago by strings28

This works for me. What error, if any are you getting? What logs to console in Firefox, IE8 or Safari?

comment:4 Changed 9 years ago by snover

Priority: undecided
Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.