You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Guido GarcĂa Bernardo <gg...@itdeusto.com> on 2003/11/19 12:04:31 UTC
Re: Displaying a dialogue box with Struts... [OT]
This is not really Struts related...
You can do it with JavaScript (IE only)
var result = showModalDialog(
'dialog.jsp','','dialogHeight:10;status:no;');
And in the 'dialog.jsp' use the returnValue:
<input type="button" value="Ok" onClick="self.returnValue='Ok';
self.close();">
<input type="button" value="Cancel"
onClick="self.returnValue='Cancel'; self.close();">
I think there is not other way with javascript (all the things I tried
were easily bypassed by the usr)...
May be a 'server' based solution with Java, to be sure that the user has
choosed an option?
Regards.
Zakaria khabot wrote:
>Hi!!
>How to display a dialog box using struts.
>The dialog box will contain two button (Ok and Cancel).
>Thanks...
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org