Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 17th, 2003, 10:17 AM
Authorized User
 
Join Date: Aug 2003
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Treeview & Javascript menu problem

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







Similar Threads
Thread Thread Starter Forum Replies Last Post
CMS: Bind Nav Data to Treeview/Menu controls bullwinkle BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 October 25th, 2007 02:33 PM
TreeView.Nodes(x).Visible & VB6 BrianWren VB How-To 1 August 28th, 2006 04:03 PM
Javascript && keeps turnig into &amp;&amp; ayrton Pro VB.NET 2002/2003 3 June 27th, 2005 03:34 PM
Problem with DataGrid & JavaScript qadeer05 Classic ASP Basics 2 April 19th, 2004 10:28 AM
Tricky Javascript/XSL '&' problem...... robster Javascript How-To 1 January 23rd, 2004 02:11 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.