homepage Welcome to WebmasterWorld Guest from 54.205.144.231
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Any easy way to save text files with javascript?
McIntyre




msg:1492854
 6:31 pm on Apr 11, 2003 (gmt 0)

Are there any simple ways of doing such a thing other than with vast sums of code for cookies (a "save()" method, perhaps)?

 

Xuefer




msg:1492855
 7:14 pm on Apr 11, 2003 (gmt 0)

i don't think so
do u wish that so many website can save text to your harddisk?
and even overwrite files

an webpage with our user permit can never access user resource

McIntyre




msg:1492856
 7:16 pm on Apr 11, 2003 (gmt 0)

Oh ok.

joshie76




msg:1492857
 8:55 am on Apr 12, 2003 (gmt 0)

What do you need to do this for?

IE has a very useful (proprietory - slap!) feature called persistence which can use the userdata behaviour that allows you to store quite sizable chunks of information on the client (I think it's up to 512k for trusted sites, and a more reasonable 128k for restricted)

Introduction to Persistence (MSDN) [msdn.microsoft.com]
UserData behaviour (MSDN) [msdn.microsoft.com]

Obviously this is IE only and I wouldn't recommend it unless you really have to and can guarantee a 100% IE audience, or if it just offers useful 'extra' functionality for IE users - I have found it to be very useful in these cases.

ricfink




msg:1492858
 11:12 pm on Apr 12, 2003 (gmt 0)

Please explain your intended application further.

The answer is yes, but there are all kinds of considerations that come into play.

McIntyre




msg:1492859
 12:20 pm on Apr 13, 2003 (gmt 0)

I want a javascript method to save variables from a downloaded HTML file (not online) into text format and another to read the text files and load the variables into the HTML file upon the user's command. Perhaps even just one which could do this from one fixed text document, not even save a new one.

tedster




msg:1492860
 8:47 pm on Apr 13, 2003 (gmt 0)

Here's a tutorial from HTMLGoodies about passing javascript variables [htmlgoodies.com].

It might give you some idea for how to approach your solution.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved