• 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 access method of js from the popup

 
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello all,
I have this problem.
I am having a mail.jsp which on click of submit accesses execute() method in a js file.
Now my requirement is to display a dialog to the user when he clicks submit button where the user can select save or cancel.
If he clicks save,save() method in js has to be called.

First:I cannot display the default dialog as I need custom captions for the buttons.
Second:the save method in js is taking a parameter which is nothing but another method in the same js.
i.e whatever is returned from the second method is taken as input parameter for the save method.

I have come uptill the popup which displays the save and cancel button.
Please help as to how shall I call the save method from the execute method of js but on click of the button in the popup.
[ July 01, 2008: Message edited by: Bear Bibeault ]
 
Ranch Hand
Posts: 479
1
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have a look at THIS link.

Cheers,
Raj.
[ July 01, 2008: Message edited by: Raj Kamal ]
reply
    Bookmark Topic Watch Topic
  • New Topic