From: <an...@co...> - 2003-08-19 18:55:22
|
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 know that I can use the DynDocument api, but it seems it doesn't works.... thanks for your help antonio |
From: Leif W <war...@us...> - 2003-08-20 04:13:19
|
----- 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 > > |
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 > |
From: <an...@co...> - 2003-08-21 11:37:41
|
Hi Doug, I've tried to do: parent.visual.mylayer.setHTML(...), but nothing! I know that there's the api DynDocument to get an object that rappresents my frame: myframe = new DynDocument(parent.visual) the object myframe should contains an array children but it's empty! argghhhh :( anyone know if i'm wrong in something? thanks antonio Il Wed, 20 Aug 2003 01:27:05 -0400 "Doug Melvin" <do...@cr...> ha scritto: > 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 > > > > > > ------------------------------------------------------- > 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 > |
From: Leif W <war...@us...> - 2003-08-22 02:54:05
Attachments:
cross_frame_access.zip
|
I've created a simple example page showing how to do this, based on Doug's enlightening suggestion to put the dynlayers in the "window" namespace by using this.dynlayer_name = new DynLayer instead of var dynlayer_name = new DynLayer. * Declare a dynlayer "this.lyr" in frame2. * Now you access a dynlayer in frame2 from frame1 using this.parent.frame2.lyr Leif ----- Original Message ----- From: <an...@co...> To: <dyn...@li...> Sent: Thursday, August 21, 2003 4:55 AM Subject: Re: [Dynapi-Help] DynDocument ... > Hi Doug, > I've tried to do: parent.visual.mylayer.setHTML(...), > but nothing! > I know that there's the api DynDocument to get an > object that rappresents my frame: > myframe = new DynDocument(parent.visual) > the object myframe should contains an array children but > it's empty! argghhhh :( > > anyone know if i'm wrong in something? > > thanks > antonio > > Il Wed, 20 Aug 2003 01:27:05 -0400 > "Doug Melvin" <do...@cr...> ha scritto: > > > 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 > > > > > > > > > > > ------------------------------------------------------- > > 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 > > |
From: Raymond I. <xw...@ya...> - 2003-08-22 15:59:28
|
Hi Leif, Could you add this to the CVS docs and examples section? -- Raymond Irving --- Leif W <war...@us...> wrote: > I've created a simple example page showing how to do > this, based on Doug's > enlightening suggestion to put the dynlayers in the > "window" namespace by > using this.dynlayer_name = new DynLayer instead of > var dynlayer_name = new > DynLayer. > > * Declare a dynlayer "this.lyr" in frame2. > * Now you access a dynlayer in frame2 from frame1 > using > this.parent.frame2.lyr > > Leif > > ----- Original Message ----- > From: <an...@co...> > To: <dyn...@li...> > Sent: Thursday, August 21, 2003 4:55 AM > Subject: Re: [Dynapi-Help] DynDocument ... > > > > Hi Doug, > > I've tried to do: > parent.visual.mylayer.setHTML(...), > > but nothing! > > I know that there's the api DynDocument to get an > > object that rappresents my frame: > > myframe = new DynDocument(parent.visual) > > the object myframe should contains an array > children but > > it's empty! argghhhh :( > > > > anyone know if i'm wrong in something? > > > > thanks > > antonio > > > > Il Wed, 20 Aug 2003 01:27:05 -0400 > > "Doug Melvin" <do...@cr...> ha > scritto: > > > > > 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 > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > === message truncated === > ATTACHMENT part 2 application/x-zip-compressed name=cross_frame_access.zip __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |
From: Leif W <war...@us...> - 2003-08-22 21:02:47
|
Sure. Where in the docs / examples tree should this go? It's more basic javascript than DynAPI specific. Not sure where to put it. Leif ----- Original Message ----- From: "Raymond Irving" <xw...@ya...> To: <dyn...@li...> Sent: Friday, August 22, 2003 11:59 AM Subject: Re: [Dynapi-Help] DynDocument ... > Hi Leif, > > Could you add this to the CVS docs and examples > section? > > -- > Raymond Irving > > --- Leif W <war...@us...> wrote: > > I've created a simple example page showing how to do > > this, based on Doug's > > enlightening suggestion to put the dynlayers in the > > "window" namespace by > > using this.dynlayer_name = new DynLayer instead of > > var dynlayer_name = new > > DynLayer. > > > > * Declare a dynlayer "this.lyr" in frame2. > > * Now you access a dynlayer in frame2 from frame1 > > using > > this.parent.frame2.lyr > > > > Leif > > > > ----- Original Message ----- > > From: <an...@co...> > > To: <dyn...@li...> > > Sent: Thursday, August 21, 2003 4:55 AM > > Subject: Re: [Dynapi-Help] DynDocument ... > > > > > > > Hi Doug, > > > I've tried to do: > > parent.visual.mylayer.setHTML(...), > > > but nothing! > > > I know that there's the api DynDocument to get an > > > object that rappresents my frame: > > > myframe = new DynDocument(parent.visual) > > > the object myframe should contains an array > > children but > > > it's empty! argghhhh :( > > > > > > anyone know if i'm wrong in something? > > > > > > thanks > > > antonio > > > > > > Il Wed, 20 Aug 2003 01:27:05 -0400 > > > "Doug Melvin" <do...@cr...> ha > > scritto: > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > 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 > > > === message truncated === > > > ATTACHMENT part 2 application/x-zip-compressed > name=cross_frame_access.zip > > > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > |
From: <an...@co...> - 2003-08-27 08:26:39
|
thanks Leif and Raymond now it works! :))) but I haven't already understand what the DynDocument api really do ... really thanks antonio Il Fri, 22 Aug 2003 12:08:30 -0400 "Leif W" <war...@us...> ha scritto: > Sure. Where in the docs / examples tree should this go? It's more basic > javascript than DynAPI specific. Not sure where to put it. > > Leif > > ----- Original Message ----- > From: "Raymond Irving" <xw...@ya...> > To: <dyn...@li...> > Sent: Friday, August 22, 2003 11:59 AM > Subject: Re: [Dynapi-Help] DynDocument ... > > > > Hi Leif, > > > > Could you add this to the CVS docs and examples > > section? > > > > -- > > Raymond Irving > > > > --- Leif W <war...@us...> wrote: > > > I've created a simple example page showing how to do > > > this, based on Doug's > > > enlightening suggestion to put the dynlayers in the > > > "window" namespace by > > > using this.dynlayer_name = new DynLayer instead of > > > var dynlayer_name = new > > > DynLayer. > > > > > > * Declare a dynlayer "this.lyr" in frame2. > > > * Now you access a dynlayer in frame2 from frame1 > > > using > > > this.parent.frame2.lyr > > > > > > Leif > > > > > > ----- Original Message ----- > > > From: <an...@co...> > > > To: <dyn...@li...> > > > Sent: Thursday, August 21, 2003 4:55 AM > > > Subject: Re: [Dynapi-Help] DynDocument ... > > > > > > > > > > Hi Doug, > > > > I've tried to do: > > > parent.visual.mylayer.setHTML(...), > > > > but nothing! > > > > I know that there's the api DynDocument to get an > > > > object that rappresents my frame: > > > > myframe = new DynDocument(parent.visual) > > > > the object myframe should contains an array > > > children but > > > > it's empty! argghhhh :( > > > > > > > > anyone know if i'm wrong in something? > > > > > > > > thanks > > > > antonio > > > > > > > > Il Wed, 20 Aug 2003 01:27:05 -0400 > > > > "Doug Melvin" <do...@cr...> ha > > > scritto: > > > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > 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 > > > > > === message truncated === > > > > > ATTACHMENT part 2 application/x-zip-compressed > > name=cross_frame_access.zip > > > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! SiteBuilder - Free, easy-to-use web site design software > > http://sitebuilder.yahoo.com > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: VM Ware > > With VMware you can run multiple operating systems on a single machine. > > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > > at the same time. Free trial click > here:http://www.vmware.com/wl/offer/358/0 > > _______________________________________________ > > Dynapi-Help mailing list > > Dyn...@li... > > https://lists.sourceforge.net/lists/listinfo/dynapi-help > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > |