Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPI
JavaScript-Error inTreeViewMenu JavaScript-Error inTreeViewMenu
Previous
 
Next
New Post
7/26/2006 10:41 AM
 
sorry, if this is the wrong place for this:

I'm using a TreeViewMenu in a Skin, like this:

<dnn:TREEVIEW runat="server" id="dnnTREEVIEWxxxxx" HeaderText="xxxxx" BodyCssClass="stpNormal" CssClass="TreeViewMenu" headerCssClass="TreeViewMenu_Header" headerTextCssClass="xxHead" NodeOverCssClass="TreeViewLinkOVer" NodeSelectedCssClass="TreeViewLink"  NodeChildCssClass="TreeViewLink" NodeCssClass="TreeViewLink" nowrap="false" treeIndentWidth="8"  />

this tree is shown properly and works fine. the only problem is that on every page a JavaScript-Error is shown in the status bar.

the error message is:

Error ``oCtl has no properties'' [xs] in file ``http://localhost/PortalName/js/dnn.controls.dnntree.js'', line 7, character 0.

The line contains the following:
dnn.controls.controls[oCtl.id] = new dnn.controls.DNNTree(oCtl);
and is part of the tree initialization:
dnn_control.prototype.initTree = function (oCtl)
{
    //oCtl.innerHTML = '';//temp
-->    dnn.controls.controls[oCtl.id] = new dnn.controls.DNNTree(oCtl);
    dnn.controls.controls[oCtl.id].generateTreeHTML();
    return dnn.controls.controls[oCtl.id];
}
the oCtl is NULL. Therefore the error when acessing it

Does anyone have an idea how to solve this? why oCtl is null? I'm using DNN 3.2.2

Thanks
Elhady
 
New Post
7/26/2006 3:54 PM
 

oCtl is the object reference to the control that represents the tree.  If you look at your page source, you will see the call to initTree.  The param passed to this ends up being oCtl. 

What browser are you using?  Any chance you can put the page in a public place and provide me with a url?

 


 
New Post
8/7/2006 4:30 AM
 
Problem solved.
I have multiple trees in a navigation bar. some of the trees are only visible when some conditions are true. this was decided when the pre-render handler of the corresponding tree is called the tree set to (in)visible. This caused the Nul-error in the js init method of the tree.
I put the trees in one table and I'm now setting the cells of the table containing the trees to visible(invisible) instead of the tree self and this solved the problem.
Elhady
 
New Post
7/10/2007 11:26 PM
 

Error: oCtl has no properties
Source File:
http://localhost:3699/PFDP/controls/SolpartMenu/spmenu.js
Line: 18

I can view TreeView in I.E normally, but with other browers as FireFox, Opera.... i can't view correct, In Error Console of FireFox has a error.

Help me! Thanks a lot!

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPI
JavaScript-Error inTreeViewMenu JavaScript-Error inTreeViewMenu


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out