• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

calling function while re postingthe same page..javascript

 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic