iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hello,We have implemented the WebMenuBar along with a WebTab to work as a graphical navigation for our application. Everything so far is working great and the implementation was pretty quick and easy. The only thing left that I have not figured out how to do is have the MenuCommand activate onMouseOver instead of onClick. Currently you click a main heading (this is a WebTab) inside each tab is a WebMenuBar that has been dynamically created using database objects. In our previous system this next level would be accessed by mousing over the text. Using the WebMenuBar you have to actually click the MenuCommand in order to drop down the list of child menu objects (WebMenuItems). Since there is already a click at the WebTab level we would like to avoid any more clicks until the page being navigated to is chosen. Is there a way to alter the MenuCommand settings so they will open up on a mouse over instead of the standard mouse click?Thanks in advance for any feedback or direction!Scott French
Unfortunately, the latest version of WebMenuBar MenuCommand default behavior must be clicked in order to open up. A workaround, by simulating the onClick event during mouse over can be achieved using this snippet:
var id = ""; function init(){ setTimeout(function() { var menuBar = ISGetObject("WebMenuBar1"); for (var i = 0; i < menuBar.Menus.length; i++) { Listener.Add(menuBar.Menus[i]._HtmlObj, "onmouseover", showMenuCommand, menuBar.Menus[i]); } }, 500);}function showMenuCommand(){ if (id != this.Name) { id = this.Name; this.OnClick(); }}
The Init() function should be invoked during window onload client side event.
Thanks, Glenn. That did the trick. I did modify it slightly for our scenario where some MenuCommands may have children and some may be a direct link. We want the MenuCommands with a link to actually be clicked and not trigger on mouseover.
if (menuBar.Menus[i].TargetURL == null) { Listener.Add(menuBar.Menus[i]._HtmlObj, "onmouseover", showMenuCommand, menuBar.Menus[i]); }
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname