• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to display warning message with 3 buttons

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi experts,

We have requirement to show the warning message when the user tries to exit the screen without saving the changes.

�Do you want to save the changes you have made?"
with 3 buttons: <Yes>, <No> and <Cancel>
Displayed when the user tries to exit the screen without saving the changes. The buttons perform the following functions if selected:
o <Yes> - Saves the information entered in the page and allows the user to exit.
o <No> - Does not save the information entered and allows the user to exit
o <Cancel> - Takes the user back to the screen, without further action.



Can any one help me to find solution?
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well JavaScript does not have anything with 3 buttons. You only have window.confirm to work with. In this case you would have to build a layer on the page that would show up on top with the three buttons.


Eric
reply
    Bookmark Topic Watch Topic
  • New Topic