Page 1 of 1

maintining value of variables in javascript

Posted: Tue Mar 18, 2008 4:14 am
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

Re: maintining value of variables in javascript

Posted: Wed Mar 19, 2008 10:29 am
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.