Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 6:28 p.m. on August 22, 2006

ShowModalDialog return to duty

Window.returnValue can be made to return to duty, I do not understand how to use, give me an example? Thank you

Need to reply to

ReturnValue installed in a modeless dialog page, and then close (), can be deployed in the main window.

Var pass=window.ShowModalDialog ( 'blank.htm' window, '')
Lane has set up an input box in blank.htm
Key:<input type= "government" name="_ftn1" "key" "
"Input type=" button "name="_ftn1"" send "value=" send "onclick=" window.returnValue=key.value;self.close (), ""
I restrict the importation of imported cases in 6202, and pass the value that does not mean 6202? ?

Can die and how to do so?

A.htm :
[code]
"Script language=" Javascript ""
Var pass=window.showModalDialog ( 'b.htm');
AlertValue function ()
{document.writeln (Pass) ;}
SetTimeout ( "alertValue ()", 5200);
"/script>
[/code]

B.htm :
[code]
Key:<input type= "government" name="_ftn1" "key" "
"Input type=" button "name="_ftn1"" send "value=" send "onclick=" window.returnValue=key.value;self.close (); ""
[/code]

In fact, I use this example to the folder encryption Lane, I was editing folder.htt document, which would not be successfully installed, to test single pages but can be successful.

Var xxx=window.showModalDialog ( 'b.htm');

Xxx b.htm here to receive the return value is used, as long as the window of a closed, xxx won the window.returnValue value b.htm

A successful transfer value, the number can transfer?

ShowModalDialog return value can be of any type, including variable, array, the customers are the

So if you have to go to a number of variables that could return a Array

Can not close the window to return value to the ejection xxx
I would like to return some value back election

Mention
Showmodelessdialog or can be used to achieve?

Do not spend it Modal with Modeless

I used
Var arr=showModelessDialog ( "test.htm", "", "dialogWidth:15em; dialogHeight:25em; status:0");
If (null arret>)
Window.document.forms[0].parentdeptname.value=arr
I hit this one, I give it to a value parentdeptname matter how [object]

Modal and this is not the same ah, no interruption of code enforcement, and this does not mean that arret return value, but that window object

Modal and see Modelss say ~~~

In a page

Window.showModalDialog ( 'b.htm' window 'dialogWidth:360px;scroll:0;status:0;dialogHeight:250px');

Actually had a pass on this page to the window object Modal dialog box.

Modal Media is a Message completely in the control of a majority of the variables or attributes you want to return should be worth more than a good run

I have not met with a Modal Dialog's history, the other does not know






 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com