DynContext
Update: Updated to version 1.3 and it now works in Gecko based browsers. This means Mozilla and Firefox. I've tested on Mozilla 1.0, Mozilla 1.5 and Firefox 1.0.3, all on Windows. This version (1.3) breaks backwards compatibility slightly, in that the javascript argument passed to the menu item constructors should now be the name of a function , without the parentheses, ie. "myCallback".
This is a Javascript context menu (right click menu) widget for use in web applications. As used in V-webmail, it's a great enhancement to usability in web apps, and can also be used as a regular menu system.
Features
- Supports IE5.5+, Mozilla 1.0+ and Firefox
- OO based API for building menus
- Can be used as a context (right click) menu, or a regular menu system.
- Easily skinned using CSS, with 4 styles bundled (XP, Windows Classic, and 2 alternatives)
- Dynamic skin changing under MSIE
- Supports regular menu items, "checkbox" style menu items, and "radio" style menu items
- 20x20 pixel icons supported for menu items
- Menu items can be disabled either at design time, or dynamically at runtime
- Unlimited levels of submenus supported
- Does not use layers on MSIE, and so renders over plugins and select dropdowns
There is documentation (HTML format) in the package, along with a fully annotated example HTML page.
Demo
There is an example page here.
License
It is released under the GPL license, which means you cannot use it in applications unless the application is GPL itself. If you can't do this, get in touch with me to talk about a commercial license.
Supported Browsers
- Internet Explorer 5.5+
- Mozilla 1.0+
- Firefox
Changelog
Version 1.3:
- Added support for Gecko based browsers
- Changed "action" javascript arguments to be just the name of a callback function
Version 1.2:
- Fixed bug introduced in XP SP2
Download
Grab it here: Download