Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Activex Controls Chatcontrol > Microsoft TreeV...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 70 of 100
Post > Topic >>

Microsoft TreeView control error after installing sp2 on XP

by "Mario" <mario@[EMAIL PROTECTED] > Sep 28, 2004 at 03:31 AM

Has anybody else come across this client side 
error "object doesn't sup****t this property or method: 
Nodes" after installing sp2 on XP Pro

Any help would be much appreciated, i am thinking it may 
have something to do with permissions

Code below:

<html>
<head>
<title>Tree Control Error</title>
<base target=_self>
<SCRIPT LANGUAGE=VBScript> 
dim Selected
	sub Window_Onload
		Selected = False
		with do***ent.frmSideLookUp.TreeView1
    		.Nodes.Clear
		.LabelEdit = 1
		.height = (window.screen.availHeight - 
290)
    		.HideSelection = False
    		.LineStyle = 1
		    .Nodes.Add , , "Root", "Attractions"
		    

		    .Nodes.Add "Root", 
4, "A1", "EXHIBITIONS"
		    

		    .Nodes.Add "Root", 4, "A2", "FITNESS"
 
		    
		nodeSelected = -1
		for each node in .nodes

		
			if node.text = "" or node.tag 
= "" then 				
				nodeSelected = node.index
				exit for
			end if
		next

		if nodeSelected <> -1 then
			set .selecteditem = .nodes
(nodeSelected)
			TreeView1_NodeClick(.nodes
(nodeSelected))
		end if	

    	end with 
	end sub
	
	Sub hypNewAttractionBtn_onclick
	dim strGroup
	dim selNode
		set selNode = 
do***ent.frmSideLookUp.TreeView1.selectedItem
		if selnode.key <> "Root" then
			do while selNode.parent.key 
<> "Root"
				set selNode = 
selNode.parent
			loop
			if selnode.parent.key = "Root" 
then
				strGroup = selnode.text
			end if	
		end if
		window.event.returnValue = null
	
	Parent.LookUpMain.location.href="wcSystem.aspx?
WCI=FL_sys_MultiTblNewLookUp&Table=2" & "&GROUP=" & 

strGroup
			
	end sub

	sub NewAttractionGroup_onclick
	
	Parent.LookUpMain.location.href="wcSystem.aspx?
WCI=FL_sys_MultiTblGpNewLookUp&Table=2"     
	End Sub

	Sub hypNewGroupBtn_onclick
		window.event.returnValue = null
	
	Parent.LookUpMain.location.href="wcSystem.aspx?
WCI=FL_sys_MultiTblGpNewLookUp&Table=2"     
	End Sub

	Sub hypBackBtn_onclick
		window.event.returnValue = null
		Parent.Location.href="wcSystem.aspx?
WCI=FL_sys_Config"
	End Sub

		
	
	sub TreeView1_NodeClick(ByVal Node)
		Selected = True
   		select case Node.key
   		
   					

   			case "A1"
				Parent.location.href = 

"wcSystem.aspx?
WCI=FL_sys_MultiTblMainLookUp&ATTRACTIONGROUP=EXHIBITIONS&
Table=2"
			

   			case "A2"
				Parent.location.href = 

"wcSystem.aspx?
WCI=FL_sys_MultiTblMainLookUp&ATTRACTIONGROUP=FITNESS&Tabl
e=2"
			

   		   		end select
	end sub


	Sub GetTreeViewHeight
		do***ent.write (windows.screen.height - 
290)
	End Sub

</SCRIPT>
</head>
<body>
<form name=frmSideLookUp method=post>
<table border=0 cellpadding=0 cellspacing=0 width=100% 
height=26 background=RLXImages/headbg.gif><tr><td><div 

class=headerbar>Attractions Setup</div></td></tr></table>
<table border=0 cellpadding=2 cellspacing=1 
class=Container>
  <tr>
    <td colspan=2>
   	<OBJECT CLASSID=clsid:5220cb21-c88d-11cf-b347-
00aa00a28331 width=14 height=14>
		<PARAM NAME=LPKPath 
VALUE=ActiveX/ComCtl32SP2.lpk>
	</OBJECT>
<OBJECT classid=clsid:0713E8A2-850A-101B-AFC0-
4210102A8DA7 height=GetTreeViewHeight() id=TreeView1 
	width=230 
codebase=ActiveX/Comctl32.cab#version=5,1,43,19 
class=ActiveX VIEWASTEXT>
	<PARAM NAME=_ExtentX VALUE=8070>
	<PARAM NAME=_ExtentY VALUE=4815>
	<PARAM NAME=_Version VALUE=327682>
	<PARAM NAME=HideSelection VALUE=1>
	<PARAM NAME=Indentation VALUE=1000>
	<PARAM NAME=LabelEdit VALUE=0>
	<PARAM NAME=LineStyle VALUE=0>
	<PARAM NAME=PathSeparator VALUE=\>
	<PARAM NAME=Sorted VALUE=0>
	<PARAM NAME=Style VALUE=7>
	<PARAM NAME=ImageList VALUE=>
	<PARAM NAME=BorderStyle VALUE=0>
	<PARAM NAME=Appearance VALUE=1>
	<PARAM NAME=MousePointer VALUE=0>
	<PARAM NAME=Enabled VALUE=1>
	<PARAM NAME=OLEDragMode VALUE=0>
	<PARAM NAME=OLEDropMode VALUE=0></OBJECT>
    </td>
  </tr>
</table>
</form>
</body>
</html>
 




 1 Posts in Topic:
Microsoft TreeView control error after installing sp2 on XP
"Mario" <mar  2004-09-28 03:31:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 19:28:31 CST 2008.