Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Fixed bug in IE Treeview Webcontrol when clicking on leaf node.

Reply
Thread Tools

Fixed bug in IE Treeview Webcontrol when clicking on leaf node.

 
 
William Main
Guest
Posts: n/a
 
      02-01-2005
When I clicked on a leaf node in the treeview control I would sometimes get
an error message "tabName is null or not an object". The error was being
produced by the treeview.htc client side script at line 209 (version 1.0).

if (textnode.tagName.toLowerCase() == "treenode")

It turns out that the object textnode was null in these instances. To fix
this I added a test for null.

function HoverNode(textnode)
{
var node;
//Bug - Jan 1 2005 WRM Clicking on leaf would result in error "tagName is
null or not an object".
// Added test for textnode != null
if (textnode != null)
{
if (textnode.tagName.toLowerCase() == "treenode")
node = textnode.subtree.all.item("_tntext", 0);
else
node = textnode;

The treeview.htc file is found in the C:\Inetpub\wwwroot\webctrl_client\1_0
folder.

Hopefully this will help others and eventually find it's way into the next
release.
--
Thanks for all you do

Virtually yours,
William Main
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange leaf image in my Treeview Romu ASP .Net 0 01-28-2009 10:20 AM
Setting ShowCheckBox on a single node when ShowCheckBoxes for a TreeView is "Leaf" scartin@gmail.com ASP .Net Web Controls 0 02-13-2007 09:20 PM
TreeView - disabling hyperlink on the leaf node mazdotnet ASP .Net 1 08-01-2006 03:24 PM
Force postback from Treeview leaf node Bret ASP .Net Web Controls 0 06-15-2005 08:50 PM
Balanced binary tree with fixed leaf nodes abhrajit@hotmail.com C Programming 7 03-09-2005 11:01 PM



Advertisments