Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > 2.0 menu client script error '0.cells null'

Thread Tools 2.0 menu client script error '0.cells null'
Posts: n/a
Hi all,

We're currently developping an 2.0 project, and ran into a
problem with the new menu control.

At the first load of the page, no errors are generated, but after a
first postback an error pops up when hovering over a menu item:

"Error: '0.cells' is null or not an object"

the error is located in the client script function
function Menu_HideItems(items) {}

for(i = 0; i < rows[0].cells.length; i++) {
in this line the length of the rows array = 0, what generates an error.
the rows array should give the menu row, what fails here. A wrong item
is considered as the menu, and therefore gives an error.

When searching deeper it seems that the function

Has anyone had this kind of error with the menu control?
The controls' viewstate is enabled, that cannot be the problem.

Can I change the clientscript that is generated by the menu control to
avoid this error?

If anyone can help, that would be great!

tnx in advance,

Kind Regards,

Koen Appeltans

Reply With Quote
Posts: n/a
We are also getting the same error. This is our situation and how it

Our web application uses an 2.0 menu and sitemap for navigation.
The page has an 2.0 treeview control on it. The data in the tree
view is built on the fly. A dhtml behavior is used to keep the selected item
in the treeview in about the middle of the screen(vertically). An Iframe is
used to display information about the item selected in the treeview or pages
selected from the menu.

the menu behaves as expected until the following conditions are met:
1 the mouse has been passed over the menu,
2 any item on the treeview is selected or expanded.
3 the mouse is pased over the menu again

We have noticed that the menu repositions itself 3px to the right of the
original position just before the above problem manifests.

The menu's will all drop down and will not disappear until the next
postback. The menu's will continue to lock down if the mouse is passed over
them until the page is refreshed.

The client scripting error that appears is "0.Cells is null or not an object"

Here is the page aspx:
<aspanel id="PanelMenu" style="width: 840px; position: absolute; top:
64px; z-index: 5; left: 101px; height: 15px; background-color: transparent;"
<asp:menu id="MenuHSNOCertifications" runat="server"
datasourceid="SiteMapDataSource1" orientation="Horizontal"
staticdisplaylevels="2" style="z-index: 1; position: absolute;"
disappearafter="-1" enabletheming="False">
<staticmenustyle backcolor="Transparent" bordercolor="#739574"
horizontalpadding="5px" borderstyle="None" borderwidth="1px"
cssclass="HSNOMenu" />
<staticmenuitemstyle cssclass="HSNOMenu" />
<dynamicmenustyle backcolor="Transparent" bordercolor="#739574"
borderstyle="Dotted" borderwidth="1px" cssclass="HSNOMenu" />
<dynamicmenuitemstyle horizontalpadding="10px"
verticalpadding="2px" cssclass="HSNOMenu" />
<statichoverstyle backcolor="White" font-underline="True"
cssclass="HSNOMenu" />
<dynamichoverstyle cssclass="HSNOMenu" font-underline="True" />
<staticselectedstyle cssclass="HSNOMenu" />
<dynamicselectedstyle cssclass="HSNOMenu" />
<asp:sitemapdatasource id="SiteMapDataSource1" runat="server" />

<asp:TreeView ID="TreeViewHSNOLocations" runat="server"
NodeIndent="5" AutoGenerateDataBindings="false" EnableTheming="false"
PopulateNodesFromClient="False" style="width: 240px; height: 520px; z-index:
1; position: absolute; top:97px; left:10px;" nodewrap="True"
cssclass="ScrollingPanel" enableclientscript="False">
<hovernodestyle forecolor="CadetBlue" />
<selectednodestyle forecolor="Blue" />

<iframe id="FrameRight" name="FrameRight" runat="server" scrolling="no"
style="position:absolute; top:100px; left:256px; width:724px; height: 520px;
background-color: transparent; z-index: 3;" frameborder="0"></iframe>

Thanks in advance
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to execute a script from another script and other script does notdo busy wait. Rajat Python 3 01-08-2010 02:05 PM
Odd script error when using client script callbacks (ASP.NET 2.0) =?Utf-8?B?TG93bGFuZGVy?= ASP .Net 0 03-27-2007 10:30 PM
Smart Navigation 2.0 menu client script error Sid ASP .Net Web Controls 1 09-14-2006 11:29 AM
Smart Navigation 2.0 menu client script error =?Utf-8?B?U2lk?= ASP .Net 0 09-14-2006 04:50 AM
Smart Navigation 2.0 menu client script error =?Utf-8?B?U2lk?= ASP .Net 0 09-14-2006 04:48 AM