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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...SolpartMenu 1.7 Javascript fix neededSolpartMenu 1.7 Javascript fix needed
Previous
 
Next
New Post
11/22/2006 3:09 PM
 

Hi,
I've just updated SolpartMenu to version 1.7 from http://www.solpart.com/Default.aspx?tabid=77&pid=2 to fix the randomly appearing 'Object reference not set..' error with previous version 1.6.x. Seems that this error is gone. Unfortunately I've found another issue introduced with version 1.7.

We have a 3-level drop down menu (menu bar, two levels of submenues below). If one clicks a menu item i the first sublevel (mention that this item has children), the child menu will not disappaer on clicking the item. A little patch would held (pls. excuse, if that idea seems to be more sofisticated... maybe someone will solve that problem in a more thoughtful way).

  //--- menuitem click ---//
 SolpartMenu.prototype.onMBIC = function (e, evt)
 {
   var oRow = spm_getSourceTR(e, this._m_sNSpace);  //event.srcElement
   var sID = oRow.id.substr(2);
   if (spm_itemHasChildren(sID, this._m_sNSpace) == false)
    this.hideAllMenus();
     this.fireEvent('onMenuItemClick', oRow);
     if (spm_getAttr(oRow, "menuclick", '').length)
    {
      eval(spm_getAttr(oRow, "menuclick", ''));
      this.hideAllMenus();
   }
   spm_stopEventBubbling(evt);
  
   this.handlembi_mo(oRow, true);
// hide all child menus on click...
     this.hideAllMenus();
 }

Yours,

dvv

 
New Post
11/26/2006 6:56 PM
 

Thanks for posting this - I will bring it to Jon Henning's attention as he's the guy behind all this great solpart menu functionality!

Nina Meiers


Nina Meiers My Little Website
If it's on DNN, I fix, build, deploy, support,skin, host, design, consult, implement, integrate and done since 2003.
Who am I? Just a city chic, having a crack at organic berry farming.. and creating awesome websites.
 
New Post
11/27/2006 9:40 AM
 

I am a little confused.  You are saying this issue was introduced in 1.7?

When you click the menu, are you not navigating to another page?

Could you provide a URL for me to look at and tell me the steps necessary to reporduce your issue?


 
New Post
11/27/2006 3:05 PM
 

Hi Jon,

I am a little confused.  You are saying this issue was introduced in 1.7?

As far as I did not see this behaviour in the previous version - yes.

When you click the menu, are you not navigating to another page?

Yes, but this takes some time (on a slow connection). The first layer will disappear immedeately, the child menu-layer will stay visible until the new page loads.

Could you provide a URL for me to look at and tell me the steps necessary to reporduce your issue?

Yes, but the site has been patched already ... try http://dnn.atbit2.de

Yours, dvv

 
New Post
11/30/2006 10:34 AM
 

That fix is not the ideal one.  There are many users that like to click a menu that has a submenu to show the submenu.  With your fix, this will cause the menu to disappear...   Looking at the code I see that there is an error with the spm_itemHasChildren function.

This change should fix it.

  function spm_itemHasChildren(sID, ns)
 {
  return spm_getById("tbl" + sID) != null;
 }


 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...SolpartMenu 1.7 Javascript fix neededSolpartMenu 1.7 Javascript fix needed


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