yamagami
02-21-2007, 01:10 PM
1) CODE TITLE: RightContext
2) AUTHOR NAME/NOTES: Harel Malka
3) DESCRIPTION:
RightContext is a supercharged right click context menu. I created it to answer a few requirements I had of context menus which I could not find anywhere else; mainly provide the *correct* contextualized menu items depending on what was right clicked. So now when you click a name link for example, the context menu can provide you with links relating to the contact’s email, phone, address etc.
RightContext generates unique context menus that are built based on the DOM element clicked using special attributes embedded in the element’s Html. The attributes are custom generated and can be anything.
Menu items can include [tags] referencing those attributes, which will cause them to be transformed to contain the actual values when the menu is constructed (i.e., when an element is right clicked.)
Features include:
* Menu items that link somewhere
* Menu items that perform a custom javascript function
* Menu items that display hardcoded text
* Menu items that retrieve text via a remote ‘ajax’ call
* Menu item separators
* Image icons for menu items
* Supports multiple different menus that can be called depending on the element clicked
* All menu items can contain [tags] which are transformed at runtime to the values embedded in the clicked element
* Conditional evaluation of menu items. An item can show or not show depending on a specified condition in the menu template (new in v0.2.3)
* CSS based look and feel
* Unobtrusive standalone javascript: no additional js framework required.
4) URL TO CODE:
http://www.harelmalka.com/?p=60
Demo at:
http://www.harelmalka.com/rightcontext
2) AUTHOR NAME/NOTES: Harel Malka
3) DESCRIPTION:
RightContext is a supercharged right click context menu. I created it to answer a few requirements I had of context menus which I could not find anywhere else; mainly provide the *correct* contextualized menu items depending on what was right clicked. So now when you click a name link for example, the context menu can provide you with links relating to the contact’s email, phone, address etc.
RightContext generates unique context menus that are built based on the DOM element clicked using special attributes embedded in the element’s Html. The attributes are custom generated and can be anything.
Menu items can include [tags] referencing those attributes, which will cause them to be transformed to contain the actual values when the menu is constructed (i.e., when an element is right clicked.)
Features include:
* Menu items that link somewhere
* Menu items that perform a custom javascript function
* Menu items that display hardcoded text
* Menu items that retrieve text via a remote ‘ajax’ call
* Menu item separators
* Image icons for menu items
* Supports multiple different menus that can be called depending on the element clicked
* All menu items can contain [tags] which are transformed at runtime to the values embedded in the clicked element
* Conditional evaluation of menu items. An item can show or not show depending on a specified condition in the menu template (new in v0.2.3)
* CSS based look and feel
* Unobtrusive standalone javascript: no additional js framework required.
4) URL TO CODE:
http://www.harelmalka.com/?p=60
Demo at:
http://www.harelmalka.com/rightcontext