• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

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.
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic