Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Passing value from parent to child window created by Pop up

Reply
Thread Tools

Passing value from parent to child window created by Pop up

 
 
sangram
Guest
Posts: n/a
 
      12-05-2006
Passing value from parent to child window created by Pop up

 
Reply With Quote
 
 
 
 
ASM
Guest
Posts: n/a
 
      12-05-2006
sangram a écrit :
> Passing value from parent to child window created by Pop up



truc = window.open('file.htm');

In mother window :
daughter = truc.document;
daughter.forms[0].aText.value = document.forms[0].myText.value;

In daughter window :
mother = opener.document;
mother.forms[0].myText.value = document.forms[0].aText.value;

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
 
Reply With Quote
 
 
 
 
Ruso
Guest
Posts: n/a
 
      12-05-2006

ASM wrote:
> sangram a écrit :
> > Passing value from parent to child window created by Pop up

>
>
> truc = window.open('file.htm');
>
> In mother window :
> daughter = truc.document;
> daughter.forms[0].aText.value = document.forms[0].myText.value;
>
> In daughter window :
> mother = opener.document;
> mother.forms[0].myText.value = document.forms[0].aText.value;
>
> --
> Stephane Moriaux et son (moins) vieux Mac déjà dépassé
> Stephane Moriaux and his (less) old Mac already out of date


Here you can find a good example of how cross window script works.
Pritty simple and easy to understand code:
http://www.galasoft-lb.ch/myjavascri...000090401.html

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
If a class Child inherits from Parent, how to implementChild.some_method if Parent.some_method() returns Parent instance ? metal Python 8 10-30-2009 10:31 AM
Passing values from Child window with frameset to Parent window with frameset jimmyfishbean@yahoo.co.uk Javascript 0 07-11-2006 09:05 AM
Results from child window submit into parent window, then child closes -- How To? Spammay Blockay Javascript 1 02-04-2005 12:47 PM
Pass from parent to child, then update parent with child value... Noel Dolan Javascript 0 07-18-2004 05:52 PM
Re: Refresh of parent window from pop up child causes a problem Natty Gur ASP .Net 0 07-01-2003 06:08 AM



Advertisments