View Single Post
Old 01-17-2013, 09:59 PM   PM User | #5
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,200
Thanks: 59
Thanked 3,996 Times in 3,965 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
Airblader is very very wrong.

MSIE *CAN* save files on the client computer.

Providing that the user allows it to by setting the security settings.

There is nothing wrong with the JS code as shown in that first post.

The error about "unterminated string constant" is simply not true.

So ssen must have changed the code before trying it with MSIE.

Now, having said all that...

The code will almost surely not run.

First of all, unless SSEN has changed the security settings in his MSIE browser, he won't be allowed to create the FileSystemObject.

Secondly, it is very unlikely that the browser will have permission to create a file in the C:\ directory. SSEN should be using some sub-directory that is used for *NOTHING* except junk file like this and that is marked as WRITABLE by the browser.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote