megabyte214
Programmer
Hello,
I'm trying to get a reference to an applet from a frame. here is the frameset:
I was in the data frame and I want to get the applet called "myJTree" that is in the Tree Frame. The applet "myJTree", is in a div called "myJTreeDiv" inside a form called "myJTreeForm" inside the "Tree" Frame.
I thought that this javascript would work:
I'm trying to get a reference to an applet from a frame. here is the frameset:
Code:
<frameset id="MainFrame" rows="120,*,12" border="0" framespacing="0" frameBorder="0">
<frame id="Header" name="Header" src="MainMenu.aspx" scrolling="no" marginwidth="0" marginheight="0" noresize>
<frameset cols="280,*"
<frame id="Tree" name="Tree" src="SysHierarchy.aspx" scrolling="no" NORESIZE marginwidth="0" marginheight="0">
<frameset id="DataView" rows="29px,*">
<frame id="DisplayName" name="DisplayName" src="DisplayName.aspx" scrolling="no" NORESIZE>
<frame id="Data" name="Data" src="Default.aspx" marginwidth="0" marginheight="0" scrolling="auto" noresize>
</frameset>
</frameset>
<frame id="Footer" name="Footer" src="Footer.aspx" scrolling="no" marginwidth="0" marginheight="0" noresize>
<noframes>
<body bgcolor="#FFFFFF">
Your browser doesn't support Frames. </body>
</noframes>
</frameset>
I thought that this javascript would work:
Code:
<script language = "javascript">
var app = top.frames.Tree.applets.myJTree;
</script>
any help would be great! Thanks,
mega