• Post Reply Bookmark Topic Watch Topic
  • New Topic

Resetting jsp form elements in mozilla  RSS feed

 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i have created one simple application and i'm using jsp as view. and in browser when i submit form and than click back button of browser the all fields of form should be reset.

I used the following code for resetting form fields



It's working fine with IE but in mozilla form fields are not getting reset.

can anyone help me out ???
 
Muhammad Saifuddin
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
did you check what error you getting on JavaScript error console in Mozilla?
 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya, but there is no error,

but i have one alert in set_reset() function. but when i click on back button of mozilla the alert is not comming i.e function is not being called.



this is how i am calling the function.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add a no cache meta tag to the page and see if it works.

Eric
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!