Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • 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
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

IE doesn't retain form fields

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,
I have a form generated by a JSP page.
The form contains a few (7-8) fields.
When the page is submitted it goes to a servlet and finally the request gets forwarded to the next JSP that renders the next html.
There is a cancel button in the next page (that is effectively doing history.back() in the onClick event). When this cancel button is clicked the request is again going to the server (instead of the browser taking it from it's local cache) and hence the form in the previous page is reloaded with all fields empty. This means the user would have to re-type all fields.
The same thing works fine in Netscape, but the reload of the previous page on history.back() is happening for IE browser only.
How do I make sure that the previous page form doesn't reload ?
I haven't used any META tags like expires or no-cache, no-store etc.
Any help would be appreciated.
Regards,
Pritam
 
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Pritam
I'd check the Tools --> Internet Options --> General --> Settings in your IE browser, where you are able to specify how frequently the browser should download the page from the server.
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,
have u checked the input type for the button on which u r applying the onClick event.
if u have given input type submit change it to button.
now it will get work.
 
Do the next thing next. That’s a pretty good rule. Read the tiny ad, that’s a pretty good rule, too.
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic