/    Sign up×
Community /Pin to ProfileBookmark

temp internet file

Hi

I’m looking for a tutorial that will show me how to save a temp internet file on the users computer that the web page will store information and then be called when the user returns so they can finish what they started

any help is great

thank you

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@suresh11Aug 20.2009 — Hi everybody,

I am new to this site.I hope this site will help me to understand quickly.

I would like to say "hi" to all members,Welcome to the forum.
Copy linkTweet thisAlerts:
@rnd_meAug 20.2009 — use cookies, localStorage, globalStorage, or IE Behaviors
Copy linkTweet thisAlerts:
@kprocauthorSep 26.2009 — the problems with cookies is I don't think the Ican get it to store enough information. I'm wanting to create an application that stores a lage amount of information on the users computer then when they comeback to the site they can finish filling in the form.
Copy linkTweet thisAlerts:
@rnd_meSep 26.2009 — ok, use [COLOR="DimGray"]cookies[/COLOR], localStorage, globalStorage, or IE Behaviors[/QUOTE]
Copy linkTweet thisAlerts:
@nathandelaneSep 26.2009 — kproc, the only way that you can store information on the user's side is by cookies. If you want to keep track of state for a website (and by the way the Internet does not keep track of state very well, it was designed to be stateless), then you should be using PHP or another server-side language and a database.
Copy linkTweet thisAlerts:
@rnd_meSep 27.2009 — kproc, the only way that you can store information on the user's side is by cookies. If you want to keep track of state for a website (and by the way the Internet does not keep track of state very well, it was designed to be stateless), then you should be using PHP or another server-side language and a database.[/QUOTE]

that answer is soo last year!

here is more info on your options:

FF3.5,IE8,S3,C3: (5mb/site)

localStorage

FF2+ (5mb/site)

globalStorage

IE5+ (100kb/page)

IE Behaviors


my mini library (http://danml.com/mini ) has a unified persistence function [CODE]store(key, val)[/CODE] that will automatically pick the best available method in all supported browsers, falling back to cookies if nothing better is available.

use: if val is passed then sets the data, else returns key's data



example (tested ff3):

[CODE]
<script src="http://danml.com/mini">
store("name", "fred");
// anytime later:
alert( store("name") ); // shows "fred"
</script>
[/CODE]



EDIT:

here is slightly more interesting example:


[CODE]
<html>
<script src="http://danml.com/mini">
var name=store("name");
if(name){
alert("Welcom back "+name);
}else{
store("name", prompt( "what is your name?", "fred" ));

}
</script>
</html>
[/CODE]
×

Success!

Help @kproc spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...