Home - Forums-.NET - FlyTreeView (ASP.NET) - Javascript error with IE 5.5

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

Javascript error with IE 5.5
Link Posted: 10-Oct-2005 21:36
but...

Installing Visual Studio .NET will upgrade Internet Explorer to version 6 and the problem will go away.

I can get hold of Visual Studio 6. Does anyone know if that will enable me to do as EvgenyT asks?

Adam.
Link Posted: 11-Oct-2005 01:56
It appears that the following code behaves differently between my IE 5.5 Test system and an IE 6.0 one. In IE 5.5 the following line actually executes the TreeView.keyEscape function (o55 in FlyTreeView.htc), with a null parameter:

if( typeof( TreeView.keyEscape ) == "undefined" return;


So, I put a try/catch block around it so that if it fails, it just returns as if it was "undefined":

The following function is in node.htc
function o100(){

if (element.parentNode.LoadingMessage != null ){
TreeView = element.parentNode;

try
{
  if (typeof(TreeView.keyEscape) == "undefined") return;
}
catch(e){ return; }

o1 = TreeView.NodesXmlDoc.documentElement.childNodes.item(o0 - 1);

} else {
ParentNode = element.parentNode.parentNode.parentNode.parentNode;
TreeView = ParentNode.TreeView;

try
{
  if (typeof(TreeView.keyEscape) == "undefined") return;
}
catch(e){ return; }

o1 = ParentNode.XmlElement.childNodes.item(o0 - 1);

}


It now works.
Link Posted: 11-Oct-2005 08:00
Big thanks.

We'll apply this bug fix into code.
Link Posted: 12-Oct-2005 00:42
No problem. Do I win a prize?

  

Adam.
Link Posted: 12-Oct-2005 23:28
Adam,

yes, you'll get free upgrades/updates for all the future versions of the product