Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access variables from diff. frames

Status
Not open for further replies.

kikesadillas

IS-IT--Management
Apr 3, 2001
1
US
I have the shown below html code. If it want to access a variable from content frame leftlinks to scroll how do i i do it? what about from leftlinks to content and viceversa.

Thank you very much

Code:
<frameset rows=&quot;100,*&quot; cols=&quot;*&quot; frameborder=&quot;NO&quot; border=&quot;0&quot; framespacing=&quot;0&quot;> 
  <frameset rows=&quot;75,100*&quot; cols=&quot;*&quot; frameborder=&quot;NO&quot; border=&quot;0&quot; framespacing=&quot;0&quot;> 
    <frame src=&quot;/topab.htm&quot; name=&quot;topone&quot; scrolling=&quot;NO&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; noresize frameborder=&quot;NO&quot;>
    <frame src=&quot;/topbot.htm&quot; name=&quot;toptwo&quot; scrolling=&quot;NO&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; noresize frameborder=&quot;NO&quot;>
  </frameset>
  <frameset cols=&quot;150,*&quot; frameborder=&quot;NO&quot; border=&quot;0&quot; framespacing=&quot;0&quot;> 
    <frameset rows=&quot;*,75&quot; frameborder=&quot;NO&quot; border=&quot;0&quot; framespacing=&quot;0&quot;> 
      <frame src=&quot;/leftlinks.htm&quot; name=&quot;leftlinks&quot; scrolling=&quot;NO&quot; noresize frameborder=&quot;NO&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot;>
      <frame src=&quot;/scroll.htm&quot; name=&quot;scroll&quot; scrolling=&quot;NO&quot; frameborder=&quot;NO&quot; noresize marginwidth=&quot;0&quot; marginheight=&quot;0&quot;>
    </frameset>
    <frameset rows=&quot;*,18&quot; frameborder=&quot;NO&quot; border=&quot;0&quot; framespacing=&quot;0&quot;> 
      <frame src=&quot;topmenus/prof.htm&quot; name=&quot;content&quot; frameborder=&quot;NO&quot; noresize>
      <frame name=&quot;bottomFrame&quot; scrolling=&quot;NO&quot; noresize src=&quot;credits.htm&quot; frameborder=&quot;NO&quot;>
    </frameset>
  </frameset>
</frameset>
 
In Scroll html file the syntax to access things in leftlinks would be
Code:
parent.leftlinks.[b]varname[/b]
. To access things in other frames it would be
Code:
parent.[b]framename[/b].[b]varname[/b].
 
OK TGML not working there with nested tags! but basically parent.framename.varname will do it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top