Hi,

I think for this u can do it in this way , u dont make two submit buttons
instead make two seperate buttons (type="button" not type="submit") then on
click of the button pass a parameter to a function that will identify which
button is pressed and accordingly u can write ur own function.
something like this

<input type="button" value ="Ok" onClick="funtest("ok")">
<input type="button" value ="cancel" onClick="funtest("cancel")">

the funtest is the function where u should be identifying which button is
pressed and accordingly u should implement the function
e.g.
function funtest(var whichButton){
if(whichButton == "ok"){
// ur implementation

}if(whichButton == "cancel"){
    window.close();
}

}

Hope this may solve ur pblm.

Srinivas

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to