Hi
I posted a query a few weeks ago regarding the treeview object, which I have got working, however, since then I've tried to incorporate it in my intranet with all the corresponding menus etc being added and the menu doesn't work! It works fine on all the other pages and I can't work out why it doesn't on this page.
I just get an expected end of statement error on the javascript line.
Can anyone help me please?!
<html>
</head>
<script language="vbscript">
Sub InitTree()
Call TreeView1.Nodes.Add(,,"_0","AWOL")
Call TreeView1.Nodes.Add("_0", 4, "_1","A")
Call TreeView1.Nodes.Add("_1", 4, "_2","B")
Call TreeView1.Nodes.Add("_1", 4, "_3","C")
Call TreeView1.Nodes.Add("_2", 4, "_4","D")
Call TreeView1.Nodes.Add("_2", 4, "_5","E")
Call TreeView1.Nodes.Add("_3", 4, "_6","F")
Call TreeView1.Nodes.Add("_6", 4, "_7","G")
Call TreeView1.Nodes.Add("_6", 4, "_8","H")
End Sub
</script>
</head>
<body onload="InitTree">
<SCRIPT language=JavaScript src="jscript/menu_array.
js" type="text/javascript"></SCRIPT>
<SCRIPT language=JavaScript src="jscript/mmenu.
js" type="text/javascript"></SCRIPT>
<table height="25" border="0" cellpadding="0" cellspacing="0" width="600">
<tr align="left">
<B></B><td align="left" bgcolor="#333366"><IMG align=bottom border=0 src="graphics/XXX.gif"></td>
<td align="right" bgcolor="#333366"><b>XXX</b></td></tr>
</table>
<OBJECT classid="clsid:C74190B6-8589-11D1-B16A-00C0F0283628" id=TreeView1 style="HEIGHT: 700px; LEFT: 0px; TOP: 0px; WIDTH: 325px" VIEWASTEXT>
<PARAM NAME="_ExtentX" VALUE="8599">
<PARAM NAME="_ExtentY" VALUE="18521">
<PARAM NAME="_Version" VALUE="393217">
<PARAM NAME="HideSelection" VALUE="0">
<PARAM NAME="Indentation" VALUE="741">
<PARAM NAME="LabelEdit" VALUE="1">
<PARAM NAME="LineStyle" VALUE="0">
<PARAM NAME="PathSeparator" VALUE="\">
<PARAM NAME="Sorted" VALUE="1">
<PARAM NAME="Style" VALUE="6">
<PARAM NAME="Checkboxes" VALUE="0">
<PARAM NAME="FullRowSelect" VALUE="0">
<PARAM NAME="HotTracking" VALUE="0">
<PARAM NAME="Scroll" VALUE="1">
<PARAM NAME="SingleSel" VALUE="0">
<PARAM NAME="ImageList" VALUE="">
<PARAM NAME="BorderStyle" VALUE="0">
<PARAM NAME="Appearance" VALUE="0">
<PARAM NAME="MousePointer" VALUE="0">
<PARAM NAME="Enabled" VALUE="1">
<PARAM NAME="OLEDragMode" VALUE="0">
<PARAM NAME="OLEDropMode" VALUE="0"></OBJECT>
</body>
</html>
Thanks
lbob