Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

telerik -- supercharge your DNN websites
  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  ClientAPI Compo...   JavaScript-Error inTreeViewMenu
Previous Previous
 
Next Next
New Post 7/26/2006 8:41 AM
User is offline Elhady Sall
2 posts
10th Ranked


JavaScript-Error inTreeViewMenu 
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 1:54 PM
User is offline Jon Henning
1622 posts
www.codeendeavors.com
5th Ranked










Re: JavaScript-Error inTreeViewMenu 

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 2:30 AM
User is offline Elhady Sall
2 posts
10th Ranked


Re: JavaScript-Error inTreeViewMenu 
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 9:26 PM
User is offline lehoangvu
3 posts
10th Ranked


Re: JavaScript-Error inTreeViewMenu 

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 Previous
 
Next Next
  Forum  DotNetNuke® Pro...  ClientAPI Compo...   JavaScript-Error inTreeViewMenu
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DotNetNuke Marketplace - Modules & Skins
The DotNetNuke Marketplace is the official e-commerce gateway for the DNN ecosystem. It's the place to buy and sell DotNetNuke modules, DotNetNuke skins, and other DNN offerings.
DotNetNuke Marketplace
ExactTarget Email Marketing Software and Solutions
ExactTarget delivers on-demand email software solutions for permission-based email marketing. ExactTarget offers solutions that meet the needs of all industry verticals and all size organizations, including SMB, corporate divisions, not-for-profits, large retail/direct marketers, agencies and enterprises.
ExactTarget.com
Sunset Hill Solutions - Consulting and Development
We offer general DNN consulting services - including custom module development and commercial module integration/setup.
www.sunsethill.ca

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP