This is a multi-part message in MIME format.
--Boundary_(ID_/onGeY7V9I0rtTO03k6htg)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7bit
RE: ModalDialogModalDialog is the window that you open as regular window
but then this window goona be an active window and will prevent from you to
go/access the window who opened
this ModalDialog.
I suggest you`ll try it out so you could get better idea.
To open ModalDialog box you can use the following line :
pass
window.showModalDialog('passconfirm.htm','','DialogWidth=14;DialogHeight=11;
status:no;');
Oleg.
-----Original Message-----
From: Pallone, Claudio [KMR-SPC] [mailto:Claudio.Pallone@k...]
Sent: April 05, 2002 4:36 AM
To: JavaScript HowTo
Subject: [javascript_howto] RE: ModalDialog
Importance: High
Hi Oleg,
Could you please explain to me what a ModalDialog is???
Also, where does the code you provided for calling the page as Model
Dialog go???
>and this is how do I call this page as Modal Dialog box
>function getpass(obj)
>{
> var pass;
> var i;
> pass
>window.showModalDialog('passconfirm.htm','','DialogWidth=14;DialogHeight=11
;
>status:no;');
> AuditAdd.AuditPwd.value = pass
>}
Cheers,
Claudio
Subject: RE: Need to send info to opener of a ModalDialog
From: Oleg Kapeljushnik <c-oleg.kapeljushnik@w...>
Date: Thu, 04 Apr 2002 14:37:26 -0500
X-Message-Number: 10
I am using in Password confirmation dialog box so here an example :
passconf.html :
<HTML>
<HEAD>
<TITLE>Password Confirmation</TITLE>
<script>
function finish()
{
var retValue;
if (pwd1.value == pwd.value)
retValue = pwd.value;
else
{
alert(MSG_PASSCONFIRM);
pwd1.focus();
return ;
}
window.returnValue = retValue;
window.close();
}
function cancel_window()
{
window.returnValue = window.dialogArguments;
window.close();
}
</script>
</HEAD>
<BODY>
<div ID="passconfirm">
<table cellspacing=0 cellpadding=0 border=0 width=200px height=150px>
<tr>
<td colspan=2 align=center>
Please enter password
<input type=password name=pwd>
</td>
</tr>
<tr>
<td colspan=2 align=center>
Please re-enter password
<input type=password name=pwd1>
</td>
</tr>
<tr>
<td>
<INPUT type=button value="confirm" onclick="return
finish();" id=confirm
name=button1>
</td>
<td>
<INPUT type=button value="cancel" onclick="return
cancel_window();"
id=cancel name=button2>
</td>
</tr>
</table>
</div>
</BODY>
</HTML>
and this is how do I call this page as Modal Dialog box
function getpass(obj)
{
var pass;
var i;
pass
window.showModalDialog('passconfirm.htm','','DialogWidth=14;DialogHeight=11;
status:no;');
AuditAdd.AuditPwd.value = pass
}
Oleg.
BMRB International
http://www.bmrb.co.uk +44 (0)20 8566 5000
____________________________________________________________
This message (and any attachment) is intended only for the recipient and
may contain confidential and/or privileged material. If you have received
this in error, please contact the sender and delete this message
immediately. Disclosure, copying or other action taken in respect of this
email or in reliance on it is prohibited. BMRB International Limited accepts
no liability in relation to any personal emails, or content of any email
which does not directly relate to our business.
--- Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20 Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20 Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20 ---