Knowledge Base support case for AllWebMenus, abstracted and stripped of all user’s private info.


Initial Email From:
Mike
Initial Email Subject:  AllWebMenu, Hide menu item or group from javascript
Support Case Month: July 2013

I assume I am able to hide a menu item or menu group via external javascript function so I can display just the items/groups based on the web page.  Can you send me an example of how to do that?
Thank you.
Mike

Reply From: Likno Customer Support

Hello Mike,

First, thank you for your interest in our Likno products.

I believe that the Server-Side Menus API is what you are looking for:

http://www.likno.com/addins/dhtml-menu-serverside.html

Also click the "Example" link:

http://www.likno.com/addins/dhtml-menu-serverside-example.html

Regards, 
Aggelos Tsakonas
Aris
www.likno.com
Powerful javascript menus (CSS menus/drop-down menus/sliding menus), web trees, buttons, tabs, modals, tooltips, accordions, scrollers, designs for your websites!

Reply From: Mike

Thank you.
I don't have a need at the moment to build the menu dynamically.  I want to build a complete static menu but then hide parts of it depending on the page the user is on.  My hope is that there is a javascript call to hide an item or group by ID?

Reply From: Likno Customer Support

Hello Mike,

Another way to achieve what you want is to use the "UL/LI" population method (see below). In that case, you can hide/show any UL/LI items (menu submenus and items in other words) you wish. I believe this is the way to go:

UL LI menu structure code

Regards, 
Aris
Likno Customer Support
www.likno.com
Powerful javascript menus (CSS menus/drop-down menus/sliding menus), web trees, buttons, tabs, modals, tooltips, accordions, scrollers, designs for your websites!

 

Tags: , , , , , , , , , , , , , , ,

 

Knowledge Base support case for AllWebMenus,  abstracted and stripped of all user’s private info.


Initial Email From:
Claudio
Initial Email Subject: awmShowItem
Support Case Month: May 2013

Kostas,

I am back with the same technical problem I encountered in the Blog below:

http://www.likno.com/blog/highlight-menu-item/2418/

You are saying in the blog response:

The “it7” is the ID of this specific item. It is NOT just its order in the menu. If you add other items before or after it, this item will still be referenced by “it7”.

==================

In the AllWebMenus Help, I read a different explanation:

About the awmShowItem variable when the menu is populated using a "UL/LI structure". 

In order to find the correct ID to use as a parameter, you should count the loading order of the ULs and LIs. So you should count how many LI tags are found in the UL/LI structure until the desired item is found.
For example this is a usual UL/LI code:
<ul id="awmULLI-menu" style="display:none;">
<li>Main Item 1</li>
<li>Main Item 2
   <ul>
     <li>Sub Item 1</li>
     <li>Sub Item 2
       <ul>
         <li>Sub Item 4</li>
         <li>Sub Item 5</li>
         <li>Sub Item 6</li>
       </ul>
     </li>
     <li>Sub Item 3</li>
   </ul>
</li>
<li>Main Item 3</li>
</ul>

According to the awmShowItem technique, if you want to make the “Sub Item 6” highlighted, you should use it7 since its LI tag is the 7th LI in the structure

==================

Testing the theory on the new project:  {URL REMOVED}

I am using the function var awmShowItem=["MainMenu,it5,1,0"];

IF I add another item in the BISHOP menu list, the highlighted menu option will move to the BISHOP group, since that option changed to it6.

The only solution to the problem is to create a javascript function where the selection of the menu item is based either on the URL or the anchor text:

awmShowItem=["MainMenu,Ministries,1,0"];  

awmShowItem=["MainMenu,CatholicDiocese.php?op=ILS_Information,1,0"];

Otherwise, I will have to go page by page to update the javascript code of similar pages, every time I add a new LI item into the structure.

Reply From: Likno Customer Support

Dear Claudio,

When you are using a menu project and you populate your menu in there, then each menu item gets a specific ID that will not change when you move this item around or add other items around it.

However, when you are using a UL/LI menu then the menu is dynamically created at runtime, so the menu items also get their ID at runtime and there is no way to have a specific item keep a specific id.

In this case, indeed, when you add items you may need to change the highlight code too.

However you say that you need to change this in every page. This suggests that you manually included the code in each of your pages in the first place. Our recommendation is that you use an include file (e.g. a PHP or ASP file) and keep the menu Linking Code, Structure Code and highlight code there. This way it will be automatically included in all pages, but it will be much easier to maintain as you will only need to change and upload a single file when you need to change the menu again.

Best Regards,
Kostas
Likno Customer Support
www.likno.com
Powerful javascript menus (CSS menus/drop-down menus/sliding menus), web trees, buttons, tabs, modals, tooltips, accordions, scrollers, designs for your websites!

 

Tags: , , , , ,

 

Knowledge Base support case for Likno Web Tooltips Builder, abstracted and stripped of all user’s private info.


Initial Email From:
Bill
Initial Email Subject: Tooltips are blank. 
Support Case Month: May 2013

Tool tips are showing blank

blank tooltips

Reply From: Likno Customer Support

Dear Bill,

I saw all these issues and run some test locally. It seems that the problem is caused by the fact that some of your tooltips are set to “live”.

The “live” function is used to monitor any page change and call the Tooltip code again in order to apply it to new items that may have been added to the page. In your case however, the page is so complex and frequently changing that this can cause serious issues.

Please, make sure that ALL of your “in page” tooltips have the “live” option unchecked.

live tooltips unchecked

Regards,
Kostas
Likno Customer Support
www.likno.com
Powerful javascript menus (CSS menus/drop-down menus/sliding menus), web trees, buttons, tabs, modals, tooltips, accordions, scrollers, designs for your websites!

 

Tags: , , , ,

 

Knowledge Base support case for AllWebMenus,  abstracted and stripped of all user’s private info.


Initial Email From:
Terry
Initial Email Subject: Menu Button Not Working in Firefox
Support Case Month: April 2013

Kostas,

I have main navigation buttons that work with Chrome, IE 8 and 9, Safari and Opera.  But they do not work with Firefox.  Can you have a look at the problem?

Terry

Reply From: Likno Customer Support

Dear Terry,

It seems that there is an error in your scripts. Specifically you are passing an “event” variable that does not exist. Since you do not seem use this variable anywhere, I suggest that you remove it.

Change the following line from:

function mNavi(event, id, n) {

To:

function mNavi(id, n) {

and all the links that are like this:

<a class="navlink" id="navlink2" href='javascript:mNavi(event, "a#navlink2", 2);' >

into something like this:

<a class="navlink" id="navlink2" href='javascript:mNavi("a#navlink2", 2);' >

Best Regards,
Kostas
Likno Customer Support
www.likno.com
Create any type of javascript menu (CSS menu, drop-down menu, sliding menu), button, html tree, modal window, tooltip, accordion, tab, scroller, jQuery slider or design for your websites!
Like us on Facebook – Follow us on Twitter

 

Tags: , , , , , , , ,

 

Knowledge Base support case for AllWebMenus,  abstracted and stripped of all user’s private info.


Initial Email From:
Claudio
Initial Email Subject: JavaScript function to trigger menu refresh.
Support Case Month: April 2013

Is there a JavaScript function I can trigger to force the refresh of the menu without having to refresh the page?

I am developing my first responsive menu, and the only solution that I could find to "wrap" the entire menu into a single button for the smartphone was to use jQuery to create another node in the <ul><li> structure for the menu.

It works! But the page needs to be refreshed.

I am open to other ideas and suggestions.  Do you have examples of other web sites that use your responsive menus that I can take a look at?  I have been using your product for many years and I don't mind adapting my design to fit your product specifications.

One more question related to Responsive Menus.

Please check in the iPad the link below.

  1. On portrait mode, select the menu option "Products", it should open the sub-menu.
  2. Leave the submenu open, and change the orientation to landscape mode.  The sub-menu remains open, but moves to Technical.

I would prefer that each time we change the orientation of the screen, the sub-menus would automatically close.

If you provide me the Javascript function that takes care of that, I can put in my code, but in this case I actually think should be default in the compilation of the AllWebMenu.

Claudio

Reply From: Likno Customer Support

Hello,

I am afraid that there is no way to refresh the menu without refreshing the page.

The only solution I can think of, is if you put the structure within the application, in which case you are allowed to have a different structure for each responsive version.

This would work, but it does not support pure CSS menus which are based on the UL/LI method (nor menus with dynamic structure, as it has to be defined within the application).

Regarding the iPad submenu issue, I have forwarded it to our developer team and I expect a fix to be released soon (so that the submenus close).

Also please note that the feature you asked for in December (loading the UL/LI menu after the DOM loads) has been included in the latest version of AllWebMenus.

Best Regards,
Kostas
Likno Customer Support
www.likno.com
Create any type of javascript menu (CSS menu, drop-down menu, sliding menu), button, html tree, modal window, tooltip, accordion, tab, scroller, jQuery slider or design for your websites!
Like us on Facebook – Follow us on Twitter

Reply From: Claudio

Thank you very much for your responses.  I understand the delay because I also deal with technical issues that sometimes they either pile up or take longer to resolve.

I am happy that the issue of December was resolved!  I will download the latest version and recompile some of my menus to test it.  Thanks for taking care of that.

Regarding the refresh of the menu, the problem I presented is not a deal breaker.  Unless you are in a demonstration showing how the web site is responsive, resizing the window, you will not encounter problems if you simply land in the responsive web site in a smart-phone, a tablet or a desktop.

However I would like to know what would be a good natural suggestion for dynamically UL/LI responsive menu.

In you example page:  http://www.likno.com/examples/responsive-menu-resize-page.html, if you think about it, it is not a practical solution.

The menu shrinks from one line (above 768px)  to two lines (between 480px to 767px), and finally to a vertical menu (below 500px).

The menu version for smart phones (below 500px) seems to have the menu aligned to the top-left corner to the window browser (I don't know how it was configured), and the content of the page inside div class=highlightBox is being squeezed to the side.  It's not a practical solution! 

By the way, the sample for the page http://www.likno.com/examples/responsive-menu-resize-page.html  should be in pure HTML5, using NAV for the menu....  just a suggestion.  Other web developers might want to see your code to copy your solution.

If you don't mind, I would like to discuss with you some suggestions to present to other programmers. I am not the type to spend time in forums and blogs, but I do like a technical challenge to be discussed directly with the solution provider.  I will be happy if I can help you improve your product, which I like and have been using for a long time.

  1. My solution in Paneltronics web site uses jQuery to dynamically create another UL/LI level to nest the entire main navigation inside a single list item.  The problem (not deal breaker) is the page refresh.
  2. Another option, that I have not thought thoroughly, is to put the AllWebMenus to work with two HTML containers:  Div1 (contains Menu button), NAV. 
    For desktop and tablet:  Div1 is set to display = none, NAV is set to display = block;
    For smartphones:  Div1 is set to display = block, NAV is set to display = none.  A simpler jQuery will toggle the display of the AllWebMenu...  
    ... is that an idea that works?  I will try it later (don't know when), and let you know.

Claudio

P.S.

http://2012paneltronics.atimo.us/AboutUs.asp?op=Snapshot

Please check the page above to see how I decided to implement the responsive menu for mobile.

I created the <div class="buttonR" id="menuButton">MENU</div> and I am using jQuery to toggle between displaying/hiding the menu.

Read my comments in green in the message below.

It's a simple solution and may work well.

Reply From: Likno Customer Support

Dear Claudio,

Nice one! Very clever workaround indeed.

So you are basically moving the Positioning Element of the smaller menu in and out of page and the menu follows that.

I will keep it in mind in case someone else has a similar issue. Also I have added the request to allow for a different UL/LI structure in each “version”. This is of considered a very low-priority for now, but it will be implemented eventually (especially if more people ask for it).

Best Regards,
Kostas
Likno Customer Support
www.likno.com
Create any type of javascript menu (CSS menu, drop-down menu, sliding menu), button, html tree, modal window, tooltip, accordion, tab, scroller, jQuery slider or design for your websites!
Like us on Facebook – Follow us on Twitter

Reply From: Claudio

Thank you!

Don't worry about the low-priority issue.  I have my problem resolved.  Feel free to share this solution with whoever has the same situation.

Claudio

 

Tags: , , , , , , , , , , ,

 


© 2009-2013 Likno Blog – Drop-Down Menus, Javascript Menus, CSS Menus, jQuery Scrollers/Sliders, Modal Windows