[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Bsiang Tan

2/24/2004 9:42:00 PM

Dear all experts,

In Yahoo Mail or Hotmail, we could click a button / or a link..[Insert
Address]
then it will pop up a new windows [Address Book] let us choose the username,
then when we close this child window, the original window, in
the recipient address will auto fill in all the user's email we select just
now..

Could anyone kindly point me how to do that ?
I don't know how to pop up a new child windows, and also don't know how to
make the
parent windows get the information the user select in the child windows.

Thank you very much.


Best regards,
Bsiang


2 Answers

Sarmad Aljazrawi

2/25/2004 11:29:00 AM

0

If i got you right, then you can use:

Window.open, window.showModalDialog, window.showModelessDialog

to open a new window, and in the opened window you can use

opener.document object to get access objects in the main window.

obs: if you use something like "x = window.open" then you can use (x) to get
access to objects in the child window.

hope this would help and feel free to post back for more info.

Regards
--
Sarmad Aljazrawi
B.Sc. Computer Science, MSDBA, MCP
www.aljazrawi.net


"Bsiang Tan" <tbsiang1982@hotmail.com> wrote in message
news:%23Wg0L8x%23DHA.3284@TK2MSFTNGP09.phx.gbl...
> Dear all experts,
>
> In Yahoo Mail or Hotmail, we could click a button / or a
link..[Insert
> Address]
> then it will pop up a new windows [Address Book] let us choose the
username,
> then when we close this child window, the original window, in
> the recipient address will auto fill in all the user's email we select
just
> now..
>
> Could anyone kindly point me how to do that ?
> I don't know how to pop up a new child windows, and also don't know how to
> make the
> parent windows get the information the user select in the child windows.
>
> Thank you very much.
>
>
> Best regards,
> Bsiang
>
>


Bsiang Tan

2/25/2004 4:56:00 PM

0

Dear Sarmad Aljazrawi,

Thank for your help, but I still have some problem, as I am newbie in
Asp.net. Hope you ca help me.

Let's say if I use "x = window.open('child.aspx')" in my child.aspx, i
have 2 textbox,
and once user fill the info into those 2 textbox, and close the child.aspx.
How can I get the value of those 2 textbox, and assign into my parent
window's variable, like
assignt the textbox1 value into my variable username[string], second
textbox2 value assign into my variable password[string].

Thank for your kindness.


Best regards,
Bsiang.



"Sarmad Aljazrawi" <anonymous[shylme]@discussions.microsoft.com> wrote in
message news:eGqrFK5#DHA.2216@TK2MSFTNGP10.phx.gbl...
> If i got you right, then you can use:
>
> Window.open, window.showModalDialog, window.showModelessDialog
>
> to open a new window, and in the opened window you can use
>
> opener.document object to get access objects in the main window.
>
> obs: if you use something like "x = window.open" then you can use (x) to
get
> access to objects in the child window.
>
> hope this would help and feel free to post back for more info.
>
> Regards
> --
> Sarmad Aljazrawi
> B.Sc. Computer Science, MSDBA, MCP
> www.aljazrawi.net