• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Regarding to retain hidden variable on click of browser back button

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

In my application I have a hidden variable is jsp file whose value is getting set in Javascript file.
The page has one hyperlink, on click of it a new page is getting open.

Problem : On click of hyperlink new page opens but on click of browser back button the value of hidden variable is getting reset.
I have to retain the value which set in Javascript file.

note : I can't go for session or cookie.

Please any one help.

Thanks in advance
 
Bartender
Posts: 2270
20
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is the hidden field value dynamic?
 
soni lal
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yeah. I javascript file depending upon some condition we are changing the hidden value. and on click of browser back button we want to retain this value
 
Swastik Dey
Bartender
Posts: 2270
20
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the value is dynamic, I don't think without using session or cookies, it's possible. Because every time the page is loaded, the script gets executed to populate the hidden field.
reply
    Bookmark Topic Watch Topic
  • New Topic