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: 02-Oct-2005 23:10
Hi,

Whenever I use this control in IE 5.5, I always get a javascript error:

"'undefined' is null or not an object. "

This is with the SupportIE55 option set to true and using version 3.5.11.0.

Can anyone shed any light on this? One of the reasons for buying this control was it's support for IE5.5 and now it looks like it does not work.

Many thanks,

Adam.
Link Posted: 02-Oct-2005 23:51
FlyTreeView supports MS IE5.5. But IE5.5 machines does not always have MSXML 3 (or higher) with it required by FlyTreeView client-side model.
That's why there's a separate option FlyTreeView.SupportIE55 that enables IE5.5 support. Generally users who use IE5.5 should update their MSXML library from windows update (or manually).
Link Posted: 03-Oct-2005 00:45
Originally I thought this might be the problem but it is not. Without MSXML 3 the tree fails completely. I am getting a working tree but still get the JavaScript error.

I have tested with MS XML 3, SP3,4,5 and MS XML 4 (latest SP) and get the same results with all versions. I can duplicate by creating a new application with an empty tree and just manually enter a few nodes.
Link Posted: 03-Oct-2005 18:58
Further investigation shows that this fault relates to the following function in FlyTreeView.htc:

function o55(str) {
str = str.replace(/%/g, "%25");
str = str.replace(/ /g, "%20");
return str;
}


This function appears to be called twice for each displayed node. The first time it is called, str is undefined. The second time, str is set to the key of the node. It is causing the javascript error when str is undefined.

Can I expect a fix for this?
Link Posted: 03-Oct-2005 22:40
Could you please try to play with this error. Try to place some code in the beginning of the function:
if (str == null) return str;
Link Posted: 05-Oct-2005 21:16
That stops the error, but also prevents any of the child nodes from being displayed. Basically get a flat tree.
Link Posted: 06-Oct-2005 20:25
I'm sorry for inconvenience. But can I ask you to debug the error to get a stack trace information for the error. I ask you to do this because we need to  detect the place where o55  function was called from.

Thanks in advance.
Link Posted: 07-Oct-2005 01:54
I will but it will take me a while. The test client does not currently have any debugging capability. I shall let you know when I have set it up and tried it.

Regards,

Adam.
Link Posted: 10-Oct-2005 03:14
Hi,

I now have a bit of time when I can look into this. However, I am not exactly sure what you are asking for. How do I get a stack trace for javascript?

At the moment the test client is just a standard build of Windows 2000 Professional SP4 with IE 5.5 installed. I can install other software if needed.

Let me know what you need and I will attempt to do it.

Regards,

Adam.
Link Posted: 10-Oct-2005 20:44
[quote="the_narv"]Hi,

How do I get a stack trace for javascript?


Probably any javascript debugger (like Visual Studio) is able to debug Internet Explorer.