| Author |
two actions with single button
|
Archana Annamaneni
Ranch Hand
Joined: Jan 29, 2003
Posts: 147
|
|
I have this problem I have a popup window with a close button , when user clicks on that close button i want to do two actions , clsoe that window and call a jsp page .This close button is in the html form . I think i need javascript , but i am not sure how to do that . Is there any other way to do that. Somebody please provide me with some sample code
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
basic idea before i leave work.. onclick="Action1();Action2();" an example onclick="document.FormName.submit();this.close;" if you do it this way you might run into the problem of the form not submitting....then again I am not sure what you need to be done. call it the 5pm brain freeze
|
 |
Randall Twede
Ranch Hand
Joined: Oct 21, 2000
Posts: 4089
|
|
|
not an answer, but something to be aware of. if your popup window has a close button in the top right corner, "X", the user is very likely to use it instead of the close button in your form.
|
SCJP
|
 |
 |
|
|
subject: two actions with single button
|
|
|