aspose 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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: calling function while re postingthe same page..javascript