maintining value of variables in javascript

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
rasiti
Forum Newbie
Posts: 2
Joined: Tue Mar 18, 2008 4:09 am

maintining value of variables in javascript

Post by rasiti »

hello...
i m developing a website..in which i need to maintain the value of a few variables throughout the project...can anyone tell me how this is done...(i mean the best way to do it)..i m using javascript and jsp on the frontend
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: maintining value of variables in javascript

Post by pickle »

JSP, like ASP & PHP, all run on the server - the client never sees or knows about it.

There is no way to use only Javascript to pass variables between pages. You could use Javascript to change some form values & submit a form to get around between pages. You can also use Javascript to access cookies, which might be your least intrusive way.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply