From: Doug M. <do...@cr...> - 2003-08-20 06:40:22
|
The best I can tell you is that if I declare a variable as this.myVariable i can then access it from other windows or frames quite easily. I.E. Also you need to consider the object hirachy of the frames themselves. Given: two frames both direct children of the main document (top) or of the same frame(parent). in frame1: <html> <head> <script> this.strValue = "I am frame one"; this.alertName=function(){ } </script> </head> <body> </body> </html> ------- and in frame2: alert(parent.frame1.strValue); parent.frame1.alertName(); Doug Melvin do...@cr... (613) 355-3600 ----- Original Message ----- From: "Leif W" <war...@us...> To: <dyn...@li...> Sent: Tuesday, August 19, 2003 9:26 PM Subject: Re: [Dynapi-Help] DynDocument ... > ----- Original Message ----- > From: <an...@co...> > To: <dyn...@li...> > Sent: Tuesday, August 19, 2003 1:00 PM > Subject: [Dynapi-Help] DynDocument ... > > > > Hi all guys, > > does anyone can tell me how can I setHtml in a layer from > > another frame? > > > > <frameset rows="50,*" border=0> > > <frame src="engine.php" name="engine" marginheight=0 marginwidth=0 > scrolling=no noresize></frame> > > <frame src="visual.php" name="visual" marginheight=0 marginwidth=0 > scrolling=no noresize></frame> > > </frameset> > > > > In a few words, I have mylayer in frame visual and I want to do: > mylayer.setHtml(...) from the frame engine. > > I think you can access the "visual" frame from the "engine" frame by > window.parent.visual, but I don't know how to access JavaScript variables > from different frames, which is what you're trying. Anyone else out there > know if this is possible, and if so, how? > > Leif > > > I know that I can use the DynDocument api, but it seems it doesn't > works.... > > > > thanks for your help > > antonio > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by Dice.com. > > Did you know that Dice has over 25,000 tech jobs available today? From > > careers in IT to Engineering to Tech Sales, Dice has tech jobs from the > > best hiring companies. http://www.dice.com/index.epl?rel_code=104 > > _______________________________________________ > > Dynapi-Help mailing list > > Dyn...@li... > > https://lists.sourceforge.net/lists/listinfo/dynapi-help > > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by Dice.com. > Did you know that Dice has over 25,000 tech jobs available today? From > careers in IT to Engineering to Tech Sales, Dice has tech jobs from the > best hiring companies. http://www.dice.com/index.epl?rel_code=104 > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > |