Home - Forums-.NET - FlyTreeView (ASP.NET) - NavigateUrl not working

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

NavigateUrl not working
Link Posted: 01-Nov-2006 11:33
We're evaluating the 2.0 version of FlyTreeView.  I'm trying it out on a MasterPage; no databind, just FlyTreeNodes in the code.  Each one has a Text & a NavigateUrl attribute.

The Text attribute renders just fine, but there is no link on the node.  I'm also getting an \"object not found\" JavaScript error on the page; the line it gives doesn't point to any javascript, but instead points to a line in the stylesheet.

I'm pretty sure this is pilot error; maybe I'm missing a file or have otherwise screwed this up, but I can't figure out where.  Can anyone pull my blinders off?
Link Posted: 01-Nov-2006 12:34
Here's the code for MasterPage.master containing the FlyTreeView control. [code] <%@ Register Assembly=\"NineRays.WebControls.FlyTreeView\" Namespace=\"NineRays.WebControls\" TagPrefix=\"NineRays\" %> Untitled Page
[/code] It functions properly. And NavigateUrl works fine. Do you use additional javascripts that may interfere with FlyTreeView runtime? Could you please try to open your page using Mozilla Firefox browser? It contains the Error Console that is more accurate that IE's one when displaying error information for Javascript code. Thanks in advance.
Link Posted: 02-Nov-2006 02:36
Thanks for the response! I thought it was maybe relative URLs versus absolute URLs, but no dice.  Here's what Mozilla has to say about the errors:

Error: _fv11 has no properties
Source File: http://sky.dnagroup.internal/WebResource.axd?d=aVsgAsdXvihUSwMyPVmQE6mFdsamu2sn0SyWf4p3RXE1RClWebytnzFQlU0HZTCzHkK5cQ5jheFfdVTWreVT7JfWtvw7sTzmTYmmS-t70Cg1&t=632972555440000000
Line: 82

Error: Error in parsing value for property 'display'.  Declaration dropped.
Source File: http://sky.dnagroup.internal/Administration/Index.aspx
Line: 0

Error: _fv11 has no properties
Source File: http://sky.dnagroup.internal/WebResource.axd?d=aVsgAsdXvihUSwMyPVmQE6mFdsamu2sn0SyWf4p3RXE1RClWebytnzFQlU0HZTCzHkK5cQ5jheFfdVTWreVT7JfWtvw7sTzmTYmmS-t70Cg1&t=632972555440000000
Line: 82

Here's the relevant function in the WebResource.axd file:

function _fv38(_fv11){
if (!_fv11.firstChild) return null;
if (_fv11.firstChild.nodeType!=3) return _fv11.firstChild;
if (_fv11.childNodes.length > 1) return _fv11.childNodes.item(1);
return null;
}  //98


Here's the only other javascript in the masterpage:

function openWin(url,name,param) {
   window.open(url,name,param);
   return;
}
function openPrint(url) {
   window.open(url, 'PrintWin','menubar=yes,toolbars=yes,statusbar=yes,location=no');
   return;
}
function swapClass(field,newClass) {
   if (document.getElementById)
     document.getElementById(field).className = newClass;
   else
     return;
}
Link Posted: 02-Nov-2006 04:47
Thank you for the debug info. But unfortunately it does not help because _fv38 is a generic function.

The Stack Trace can help with the issue. Is it possible that you provide the error stack trace? If yes, then JavaScript Debugger Firefox add-on (https://addons.mozilla.org/firefox/216/)  displays such information.

Otherwise, it will take a couple of days for us to investigate various types of NavigateUrl usage to detect the problem.

Thanks.
Link Posted: 02-Nov-2006 05:22
Here's what  the Javascript debugger spat out:

Error ``_fv11 has no properties'' [xs] in file ``http://sky.dnagroup.internal/WebResource.axd?d=aVsgAsdXvihUSwMyPVmQE6mFdsamu2sn0SyWf4p3RXE1RClWebytnzFQlU0HZTCzHkK5cQ5jheFfdVTWreVT7JfWtvw7sTzmTYmmS-t70Cg1&t=632972555440000000'', line 82, character 0.
Exception ``TypeError: _fv11 has no properties'' thrown from function _fv38(_fv11=null:null) in  line 82.
[e] message = [string] \"_fv11 has no properties\"
Exception ``TypeError: _fv11 has no properties'' thrown from function anonymous(_fv133=string:\"ctl00_ResourceMenu\") in  line 374.
[e] message = [string] \"_fv11 has no properties\"
Exception ``TypeError: _fv11 has no properties'' thrown from function (null)() in  line 287.
[e] message = [string] \"_fv11 has no properties\"
Error ``TypeError: _fv11 has no properties'' [xs] in file ``http://sky.dnagroup.internal/WebResource.axd?d=aVsgAsdXvihUSwMyPVmQE6mFdsamu2sn0SyWf4p3RXE1RClWebytnzFQlU0HZTCzHkK5cQ5jheFfdVTWreVT7JfWtvw7sTzmTYmmS-t70Cg1&t=632972555440000000'', line 82, character 0.
Error ``_fv11 has no properties'' [xs] in file ``http://sky.dnagroup.internal/WebResource.axd?d=aVsgAsdXvihUSwMyPVmQE6mFdsamu2sn0SyWf4p3RXE1RClWebytnzFQlU0HZTCzHkK5cQ5jheFfdVTWreVT7JfWtvw7sTzmTYmmS-t70Cg1&t=632972555440000000'', line 82, character 0.
Exception ``TypeError: _fv11 has no properties'' thrown from function _fv38(_fv11=null:null) in  line 82.
[e] message = [string] \"_fv11 has no properties\"
Exception ``TypeError: _fv11 has no properties'' thrown from function anonymous(_fv133=string:\"ctl00_ResourceMenu\") in  line 374.
[e] message = [string] \"_fv11 has no properties\"
Exception ``TypeError: _fv11 has no properties'' thrown from function (null)() in  line 283.
[e] message = [string] \"_fv11 has no properties\"
Error ``TypeError: _fv11 has no properties'' [xs] in file ``http://sky.dnagroup.internal/WebResource.axd?d=aVsgAsdXvihUSwMyPVmQE6mFdsamu2sn0SyWf4p3RXE1RClWebytnzFQlU0HZTCzHkK5cQ5jheFfdVTWreVT7JfWtvw7sTzmTYmmS-t70Cg1&t=632972555440000000'', line 82, character 0.

It doesn't seem very revealing; is there somewhere else I can look for different debug info?
Link Posted: 02-Nov-2006 06:33
Does the error occur immediately after the page was loaded? I mean no user interaction need to raise the error?

Also, is it possible that you provide the a part of code that implements FlyTreeView in your page?

I mean the code of ... .

Thank you for patience.
Link Posted: 02-Nov-2006 07:20
No user interaction required; it's like it doesn't even build the control all the way.

Here's a code sample:

                            

  
      
        
              
              
            
              
        
        
              
                
                
          
          
          
          
          
            
          
          
      

Link Posted: 02-Nov-2006 08:39
Your code works here correctly. Everything is rendered and NavigateUrl also works.

There are currently two options available:
1. You can send the complete rendered HTML output of your page. (to flytreeview.asp+9rays+net)
2. You can play with control at your place. Try to place it into separate page of your project and see whether it works or not.

Thanks.