• Post Reply Bookmark Topic Watch Topic
  • New Topic

calling function while re postingthe same page..javascript  RSS feed

Anant Rao
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i have 2 drop down and and checkbox and back button on my jsp page. if i select a row from first down ...the page gets reloaded and populates the seocnd dropdown with related stuff in the first dropdown.
When back button is clicked, it should call a javascript which invokes the previous page.If anything is changed in jsp then it should display a msg with ok & cancle and then go back to previous pages depending on the Ok/cancle and if nothing is changed then directely go back to previous page. For 2nd dropdown and checkbox its working fine...i am checking dirtyflag. but for the first dropdown ,since its reloading the page with a value whihc have selected before...and click back button its not displaying hte msg.

How can i get msg. i mean where can i chekc this condition.

Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!