[jQuery] Re: Reading in the contents of a file.

2008-02-12 Thread tstrokes
Well I did find this example:http://alex.dojotoolkit.org/?p=532. I'm not a big fan of dojo so I was wondering if you could do anything like this in jQuery. --tstrokes On Feb 11, 9:32 pm, alfredwesterveld <[EMAIL PROTECTED]> wrote: > This can't be done with javascript (client-side) because javascr

[jQuery] Re: Reading in the contents of a file.

2008-02-12 Thread alfredwesterveld
This can't be done with javascript (client-side) because javascript can't read/write to files. You can do this server-side with for example PHP. On Feb 11, 11:41 pm, tstrokes <[EMAIL PROTECTED]> wrote: > Is there a way to get the contents of a file without actually > uploading the it? > > Example

[jQuery] Re: Reading in the contents of a file.

2008-02-12 Thread Bernard
Sorry Tstrokes, you don't have access to a file on disk in javascript. you could copy and paste the content in your script as a variable if it's not too long though. whatever you try, the content will be sooner or later uploaded to the user. On 11 fév, 17:41, tstrokes <[EMAIL PROTECTED]> wrote: