Click to See Complete Forum and Search --> : A question about dialog window


Lily
03-25-2003, 01:53 AM
Hi all,

"window.promot(message,input)" will popup a dialog for user to input , when onclick event return true, does this input will be sent to server side?

example:

<form name="osForm" action="submitForm() method="post">
...
<Table>
..
<TD>DOS<INPUT type="radio" name="dos" value="1">1
</TD>
..
</TABLE>

<A><INPUT name="submit" onclick="window.prompt("Input the new OS name:","");return true" value="Add New OS" >

Any help will be more thanks!

Lily

gil davis
03-25-2003, 06:09 AM
No, it does not go back to the server unless you move the result into a form field. Something like:<input type="hidden" name="userinput">
<INPUT type="button" name="submit" onclick="this.form.userinput.value=window.prompt("Input the new OS name:","")" value="Add New OS">

Lily
03-25-2003, 06:44 PM
davis,

It's so kind of you. Thanks. :)


Lily