[jQuery] Re: load a file from local file system

2007-10-26 Thread Gordon
No, this is deliberately left out of javascript on the grounds that it could prove a massive security risk if abused. On Oct 26, 10:49 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, the $(element).load(url) works well, but is there a way load from a local file system? thanks. A.C.

[jQuery] Re: load a file from local file system

2007-10-26 Thread Gordon
AJAX requests are cached by default, but they can only occur from a web server and must occur in the domain the page is hosted in. For example if you have a HTML page at www.example.com that includes some AJAX javascript, the AJAX requests can only occur on files on www.example.com On Oct 26,

[jQuery] Re: load a file from local file system

2007-10-26 Thread [EMAIL PROTECTED]
hi, ok, so javascript does not have a way to access local file. a related question, can ajax loaded file be cahced? On Oct 26, 6:37 pm, Gordon [EMAIL PROTECTED] wrote: No, this is deliberately left out of javascript on the grounds that it could prove a massive security risk if abused. On