Forums
This topic is locked
Targeting frame with parent objects in a tree
Posted 01 Apr 2002 23:54:13
1
has voted
01 Apr 2002 23:54:13 Travis Brown posted:
I'm using a tree menu in a left frame for a page, and need to target the main frame with the parent objects while simutaneously expanding the tree. The child objects are fine; however, I cna't get the "folder" items to work like this. Here's a sample of the parent objects.This is the original code.
<DIV ID="I0SXE5SXP" CLASS=SXP0>
<A HREF="javascript:void(0);" onClick="onClicked('I0SXE5'); return false">
<IMG NAME="MI0SXE5SXP" SRC="img/sxicon0.gif" ALIGN="absmiddle" CLASS=im BORDER=0></A><IMG NAME="NI0SXE5SXP" SRC="img/sxicon2.gif" ALIGN="absmiddle" CLASS=im> <A HREF="javascript:void(0);" CLASS=SXLP0 onClick="onClicked('I0SXE5'); return false">Support Tools</A>
</DIV>
I tried to change it to
<DIV ID="I0SXE5SXP" CLASS=SXP0>
<A HREF="w3" TARGET="mainframe" onClick="onClicked('I0SXE5'); return false">
<IMG NAME="MI0SXE5SXP" SRC="img/sxicon0.gif" ALIGN="absmiddle" CLASS=im BORDER=0></A><IMG NAME="NI0SXE5SXP" SRC="img/sxicon2.gif" ALIGN="absmiddle" CLASS=im> <A HREF="w3" TARGET="mainframe" CLASS=SXLP0 onClick="onClicked('I0SXE5'); return false">Support Tools</A>
</DIV>
but it doesn't change anything.
I also tried a js onClick function, but also no luck:
<DIV ID="I0SXE5SXP" CLASS=SXP0> <A HREF="javascript:void(0);" onClick="onClicked('I0SXE5'); return false">
<IMG NAME="MI0SXE5SXP" SRC="img/sxicon0.gif" ALIGN="absmiddle" CLASS=im BORDER=0 onMouseDown="MM_goToURL('parent.frames[\'mainframe\']','w3');return document.MM_returnValue"></A><IMG NAME="NI0SXE5SXP" SRC="img/sxicon2.gif" ALIGN="absmiddle" CLASS=im> <A HREF="javascript:void(0);" CLASS=SXLP0 onClick="onClicked('I0SXE5'); return false;MM_goToURL('parent.frames[\'mainframe\']','w3');return document.MM_returnValue">Support
Tools</A> </DIV>
This is the head script for the last sample:
<script language="JavaScript">
<!--
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'"
}
//-->
</script>
Any help is appreciated.