Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: parent window call child window


Message #1 by "yyy" <hkyeong1@y...> on Wed, 26 Feb 2003 06:40:51


Hello Y,
               Use this syntax, window.location.href="http://203.106.203.231/buy/po/polist.asp"
 
Fahad,
........................



>From: Y 
>Reply-To: "javascript" 
>To: "javascript" 
>Subject: [javascript] Re: parent window call child window 
>Date: Thu, 27 Feb 2003 06:45:10 -0800 (PST) 
> 
>hi fahad 
> 
>sorry i think i mistake ,let me repeat the question 
>with more clearly 
> 
>After parent a using window open to open child window 
>b 
> 
>The parent page a can will change to 
>another url...let said parent z (same window as parent 
>a) ? 
> 
>from parent z using same method to call 
>child window b by 
>window.remoteWnd.location.href="http://203.106.203.231/buy/po/polist.asp"; 
> 
>it is possible? 
> 
>how? 
> 
>can the variable remoteWnd from one asp to another 
>asp ?? 
>how? 
> 
>got any idea? 
> 
>it is possible no using frame? 
> 
> 
>and sorry for confious you about parent b 
>i should using different char to represent 
> 
>thank for reply 
> 
> 
>regards, 
>y 
> 
> 
> 
> 
>--- Fahad Khan wrote: 
> > 
> > Hello Y, 
> > I think you are refering to child window. because 
> > "b" is your child window not the parent window. 
> > Yes you can change the location of parent window to 
> > a different document from a child window. 
> > use following syntax in your child window, 
> > window.opener.location.href = "anypage.htm" 
> > Fahad, 
> > ................................... 
> > 
> > 
> > 
> > 
> > >From: Y 
> > >Reply-To: "javascript" 
> > >To: "javascript" 
> > >Subject: [javascript] Re: parent window call child 
> > window 
> > >Date: Thu, 27 Feb 2003 02:43:50 -0800 (PST) 
> > > 
> > >hi fahad: 
> > > 
> > >thank 
> > >it work 
> > > 
> > >one more thing,if i want to parent page change to 
> > >another url...let said parent b 
> > > 
> > >from parent b using same method 
> > >to call 
> > 
> >window.remoteWnd.location.href="http://203.106.203.231/buy/po/polist"; 
> > 
> > >in javascript 
> > > 
> > >it is possible? 
> > > 
> > >thank for reply 
> > > 
> > >regards, 
> > >yeong 
> > > 
> > >--- Fahad Khan wrote: 
> > > > 
> > > > 
> > > > 
> > > > In function submit1, you are using "remoteWnd = 
> > > > window.open (url,"sms");" hence name of your 
> > child 
> > > > window is not "sms" but it is remoteWind. 
> > > > Now do following, 
> > > > remove everything from your function "link" and 
> > put 
> > > > following line 
> > > > : 
> > > > 
> > 
> >window.remoteWnd.location.href="http://203.106.203.231/buy/po/polist"; 
> > 
> > > >   
> > > > Fahad. 
> > > > --------------------------- 
> > > > 
> > > > 
> > > > 
> > > > >From: Y 
> > > > >Reply-To: "javascript" 
> > > > >To: "javascript" 
> > > > >Subject: [javascript] Re: parent window call 
> > child 
> > > > window 
> > > > >Date: Wed, 26 Feb 2003 01:00:33 -0800 (PST) 
> > > > > 
> > > > >hi fahad: 
> > > > > 
> > > > >thank fahad 
> > > > > 
> > > > >submit1 javascript function is my parent window 
> > A 
> > > > >Call 'http://203.106.203.231/ ....asp page 
> > > > >(child window b --with name sms) 
> > > > > 
> > > > > 
> > > > >link javascript function is hyperlink at parent 
> > 
> > > > window 
> > > > >A that change the child window--name "sms" to 
> > > > another 
> > > > >url call http://203.106.203.231/buy/po/polist"; 
> > 
> > > > > 
> > > > >**my question why the link it is working? 
> > > > >go out error window.childlocation.location is 
> > no 
> > > > >object 
> > > > > 
> > > > >anything wrong?? 
> > > > > 
> > > > > 
> > > > > 
> > > > Tired of spam? Get advanced junk mail protection 
> > 
> > > > with MSN 8. 
> > > > 
> > > > --- 
> > > 
> > > 
> > >===== 
> > >Regards, 
> > >HKY 
> > > 
> > >__________________________________________________ 
> > >Do you Yahoo!? 
> > >Yahoo! Tax Center - forms, calculators, tips, more 
> > >http://taxes.yahoo.com/ 
> > > 
> > >--- 
> > MSN 8 with e-mail virus protection service: 2 
> > months FREE* 
> > 
> > --- 
> 
> 
>===== 
>Regards, 
>HKY 
> 
>__________________________________________________ 
>Do you Yahoo!? 
>Yahoo! Tax Center - forms, calculators, tips, more 
>http://taxes.yahoo.com/ 
> 
>--- 
MSN 8 helps ELIMINATE E-MAIL VIRUSES.  Get 2 months FREE*.

  Return to Index