File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes calling function while re postingthe same page..javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "calling function while re postingthe same page..javascript" Watch "calling function while re postingthe same page..javascript" New topic
Author

calling function while re postingthe same page..javascript

Anant Rao
Ranch Hand

Joined: Nov 12, 2004
Posts: 126
Hi,

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.

Regards
Infynti.
 
jQuery in Action, 2nd edition
 
subject: calling function while re postingthe same page..javascript
 
Similar Threads
dropdown selection in Struts2
How to retain selected content after post on same page
how to cancel the unload event in a jsp
Capture the back page event in java script
Forcing struts to validate