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


Initial Email From:
Bob
Initial Email Subject: Execute "Javascript Command" from menu item onclick event
Support Case Month: January 2013

I own AllwebMenus PRO 5.3 build 900.

I checked all the help, and I haven't found an explanation on how to call an in-page javascript function from an AllwebMenus menu item, using the "Javascript Command" feature attached to the item's onclick event.  The javascript function I want to call actually resides in the <head> section of my web page like this:

<head>

<!-- header stuff  -->

<script type="text/javascript">

function changeContentInfo(newText)
{
   document.getElementById('DisplayDate').innerText=newText;
}
</script>

</head>

I can call this function from anywhere in my web page - a button click or focus event etc.  But if I try to call it from the "Javascript Command" entry of an AllwebMenus menu item onclick event, nothing happens.

The "Javascript Command" is entered as: changeContentInfo("Monday");

I sure hope it's possible to call a javascript function that resides on the web page, so I can re-use the call from the AllwebMenus "Javascript Command" feature. I don't want to repeatedly write the same full function details into each "Javascript Command" where I would need it.

I'm experimenting with that neat 'calendar' AWM project, and I was checking that my page could respond to clicking on any day in the calendar.  That would mean that I would call my function 31 times for the 31 days in March.  So far, no luck.

The page I'm working on isn't on my website yet, because it doesn't work.

Thanks,
Bob

Reply From: Likno Customer Support

Dear Bob,

If your page already has the function, then calling it from AllWebMenus should work directly and without problems:

run javascript command

If this does not work, then I will need you to upload your example on a test-page so that I can check 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

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

 

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


Initial Email From:
User
Initial Email Subject: how to add an onmouseout event
Support Case Month: January 2013

how do I add an "onmouseout" event? I can add a javascript command to the Mouse Over state but I do not see how to add one to the mouseout.

Reply From: Likno Customer Support

Hello,

You should add a JavaScript Command for the “Normal State” (when you mouse-out of an item, it returns to “normal” state).

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:
Paolo
Initial Email Subject: questions about AllWebMenus
Support Case Month: November 2012

Dear Kostas,

I have a few questions about AllWebMenus.

1. I have made a menu which will be shown on the left of the page (floating) and which will be on support of the main menu.

1.1. Is it possible to regulate the speed of the floating menu?

1.2. I tried to make the right corners rounded but I am unable to do that… how do I do that??

1.3. is it possible to make the menu sticky? I mean not floating but always showing at the same position even if the page scrolls…

1.4. I have problems by using javascripts like for page reload, go back one page and print this page… As if I place them in the Link cell they are not working I placed them in the Javascript Command cell, they are working but they run when the mouse just goes hover, so even if you don’t click on them

Hope to get your answers as soon as possible.

Thanks,
Paolo

Reply From: Likno Customer Support

Dear Paolo,

1.1) You have two options regarding the float speed of the menu. Either “instant” or “smooth”. With the first option, the menu will be fixed to the window side. With the second option the menu will follow with a small delay after scrolling. There is not extra setting for determining the “follow speed”.

1.2) You simply need to set the group to have rounded corners. If your items also have a background color, then make sure that these (first-last) have rounded corners too. If you need more help on this, please export and send me the menu project file.

1.3) This is the “instant” choice I talked about in (1.1):

menu floats on scroll, instant choice

1.4) You need to place them in the JavaScript command, but under the “click” column:

javascript under mouse click

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: , , , , , , , , , , , , , , , , , , , ,

 


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