/    Sign up×
Community /Pin to ProfileBookmark

need help to maintain persostant variables

hello all, i am working on an application in a company. the applicaton has 3 frames of which first 2 r invisible and the last one is spanning the 100% area.
i just want to save 2 string variables to set menus in my applicaion. but when i press the refresh button the variables also get reset. is there any way to declare these variables somewhere else so that their values can persist even after refreshing the frames?
thanks!!
amol

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@buntineJul 18.2005 — Which technology are you working with? Javascript?
Copy linkTweet thisAlerts:
@Amol_ChaudhariauthorJul 18.2005 — hi, i am working with html and javascript. the problem arises when someone hits the refresh button from browser menu bar or press F5.

if one right clicks on the webpage and select refresh then everything works fine as the global variables are not getting reset(and only this frame is visible).

of the three frames i am having, only one is visible and remaining 2 are created for controlling and maintaining different variables.

i tried declaring the strings in these control frames but it didnt work.

thanks.

amol
Copy linkTweet thisAlerts:
@IncaWarriorJul 18.2005 — store it as a cookie and retrieve it everytime you need it
×

Success!

Help @Amol_Chaudhari 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 6.16,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...