Jeegoocontext, een jQuery contextmenu plugin

JeeGoo Context jQuery Plugin

JeeGooContext is een jQuery plugin waarmee meerdere custom contextmenu's (pop-up menu's) op een enkele pagina kunnen worden geplaatst. Via een enkele functie aanroep kan een meerlaags, automatisch gepositioneerd, gestyled menu worden getoond.

JeeGooContext is beschikbaar onder de MIT/GPL licentie. Een demo is beschikbaar.

Release tabel

VersieDatumRelease notitiesDocumentatieDownload
1.325-10-2010notitiesdocumentatiejeegoocontext_1_3.zip
1.2.224-04-2010notitiesdocumentatiejeegoocontext_1_2_2.zip
1.2.111-01-2010notitiesdocumentatiejeegoocontext_1_2_1.zip
1.228-11-2009notitiesdocumentatiejeegoocontext_1_2.zip
1.1.120-11-2009notitiesdocumentatiejeegoocontext_1_1_1.zip
1.119-11-2009notitiesdocumentatiejeegoocontext_1_1.zip
1.0 (Beta)16-11-2009documentatiejeegoocontext_1_0.zip

Features

Gemakkelijk te implementeren.

De volgende stappen zijn nodig om de plugin te implementeren:

  1. Voeg een referentie naar de jquery library en naar het bestand jquery.jeegoocontext.min.js toe.
  2. Selecteer een skin (skins "cm_default" en "cm_blue" bijgesloten in de download) en voeg een referentie naar de stylesheet van de skin toe.
  3. Voeg een ongeordende lijst(ul) toe aan de body en geef deze een unieke id en de klasse naam "jeegoocontext" gevolgd door de klasse naam van de skin: "cm_default" of "cm_blue".
  4. Bind het menu m.b.v. de volgende code: $('context').jeegoocontext('menu id', 'options'). 'context' is een jQuery selector en 'menu id' is het unieke id van het menu(de ongeordende lijst), 'options' is een optioneel object met configuratie eigenschappen. Een voorbeeld: $('.context').jeegoocontext('menu_1');

Zowel verticale als horizontale automatische positionering.

Normaal gesproken opent het contextmenu op exact de geklikte positie. Echter als het menu aan de rechter- of onderkant van de webpagina wordt geopend dan worden het menu en eventuele submenu's met een offset geopend zodat deze niet van pagina afvallen.

De offsets zijn instelbaar via de "widthOverflowOffset" en "heightOverflowOffset" eigenschappen van het options object.

Instelbare vertragingstijd voor het gemakkelijker selecteren van submenu-items.

Op het options object is een "delay" eigenschap aanwezig welke de vertragingstijd bepaalt waarmee submenu's weer dichtklappen. Zonder deze vertragingstijd klappen de submenu's meteen dicht wanneer een gebruiker zijn/haar muis naar een ander menu-item beweegt. De volgende animaties verduidelijken het probleem:

Geen vertragingstijd, een gebruiker wilt het menu-item "file9.txt" selecteren.

Geen vertaging

Wel vertragingstijd

Vertraging

Meerdere menu's op een enkele pagina.

Elke webpagina kan meerdere contextmenu's bevatten. Elk menu hoeft slechts een uniek id te hebben en alle menu's op de pagina moeten dezelfde klasse delen. Deze klasse heeft standaard de waarde "jeegoocontext" en is overschrijfbaar via de options.menuClass eigenschap.

Volledig vorm te geven via css.

De code bevat nauwelijks presentatie script zodat de interface volledig via css kan worden vormgegeven. In de download zit een "skins" map welke de skins "cm_default" en "cm_blue" bevat. Deze skins bestaan uit slechts een afbeeldingen map genaamd "images" en een enkele stylesheet.

Aanpasbaar gedrag via callbacks.

De plugin publiceert een viertal bruikbare events waarmee het gedrag van het menu kan worden aangepast, nl:

  1. onShow
  2. onHover
  3. onSelect
  4. onHide

Vanuit ieder van deze functies kan false worden teruggegeven waardoor het standaard gedrag van het menu wordt overschreven.

Aanpasbare klasse namen voor het voorkomen van naam conflicten.

De plugin maakt gebruik van de volgende klasse namen:

  1. active
  2. hover
  3. jeegoocontext
  4. submenu
  5. separator

Al deze namen zijn overschrijfbaar.

Opera compatible.

Het rechtermuisklik-event is niet beschikbaar in oudere versies van Opera. Zodra de plugin Opera detecteert wordt het menu automatisch aan het ctrl+click-event gebonden. Het event type kan worden overschreven via de "operaEvent" eigenschap van het options object.

Cross-browser ondersteuning.

De plugin is getest in de browsers: Opera 10, Safari 4, Chrome 3, FireFox 3, Internet Explorer 6, 7 & 8. Op wat kleine bugs in IE 6 & 7 na werkt het menu in al deze browsers.

Keyboard ondersteuning.

Het menu kan worden gesloten via de escape-toets. Via de enter-toets wordt een menu-item geselecteerd. De pijltjes-toetsen kunnen worden gebruikt om door de menu-items te navigeren.

Klein script.

De "geminificeerde" versie van het script is ca. 7 kb groot.

16-11-2009 21:30 Peter
Cool. I had the context menu up and running in a couple of minutes. Good work.
20-11-2009 11:59 Joe
Hey. This looks good. How hard would it be to have it be a pop-up menu rather than context? (In other words, to use the left-click...) Should be an easy change?
20-11-2009 15:49 Erik
Hey Joe, the latest release (version 1.1.1) exposes an event property on the options object which can be used to bind the menu to a different event. For example, the menu can be bound to a left-click like this: $('.context').jeegoocontext('menu', { event: 'click' });
21-11-2009 14:56 pako
This line in the style.css for the cm_default theme needs fixing: /* Possibly inherited values overrides */ border-width:0; float:none; background-color:#d7e1eb; background:#e6e6e6 url(images/contextmenu_bg.gif) repeat-y 0 0; I just removed the reference to the contextmenu_bg.gif file in my version.
22-11-2009 11:53 pako
Jeegoo Context doesn't property support adding the same multi-level context menu to dynamically generated elements being added to the document on-the-fly.
22-11-2009 11:54 pako
I have a single context menu and try adding it to every new element the user adds to the document. I call the following method: $('#element_'+el.id).jeegoocontext('contextmenu');
22-11-2009 11:55 pako
Every time this happens Jeegoo Context adds another arrow next to each element with a submenu.
23-11-2009 10:19 Erik
Hey pako, thanks for the info. I hadn't considered dynamically added elements when designing the menu. There should obviously be a check if submenu arrows are already present before adding them. I will fix these issues in the next release.
28-11-2009 4:41 K
Great work. But how can I unbind the plugin's events...?
28-11-2009 5:11 K
> pako Simple (temporary) solution Line 101 <Before> if(_menus[id].autoAddSubmenuArrows)$('#' + id).find('li:has(ul)').prepend('span class="' + _menus[id].submenuClass + '"/span'); <After> if(_menus[id].autoAddSubmenuArrows && !$('#' + id).find('span.submenu').length)$('#' + id).find('li:has(ul)').prepend('span class="' + _menus[id].submenuClass + '"/span');
07-12-2009 7:54 Denis
Hey. Thanks for a great plugin! I am using this plugin for showing both context and standard menus. The latter, however, is usually shown when a button is pressed. Therefore, it would be great if you add to your plugin an ability to bind the top left corner of a menu not only to current pointer coords, but also to a DOM element coords (in my case I would bind it to the bottom left corner of a button so the menu would appear just below that button). Thanks again for your work!
08-12-2009 8:28 Denis
Hi, it's me again. I've just found a bug in the plugin: if a submenu doesn't have a fixed width (width:auto), then the plugin incorrectly calculates the left offset. The wider a submenu the more far from the root menu it will appear, regardless of the submenuLeftOffset parameter. Hope this info would be helpful and the bug will be fixed soon!
08-12-2009 10:27 Denis
Here's the fix to the bug I've found. Replace the code at string 164 with the one below: 'left': (overflow.width > 0) ? (-$submenu.parent().parent().width() - _menus[id].submenuLeftOffset + 'px') : ($submenu.parent().parent().width() + _menus[id].submenuLeftOffset + 'px'), Erik, you should calculate the offset for a submenu using the width of its parent, not itself. Because, like in my case, the parent's width was less than the submenu's and thus the submenu appeared the more far from the parent menu the wider that submenu was.
09-12-2009 12:21 Erik
Hi Denis, i'm glad you like the plugin. I'll look into these issues asap.
13-12-2009 18:15 Denis
Hi Erik. I've made some improvements to your plugin. How can I contact you to send that modified version of the plugin to you?
14-12-2009 19:01 Gerd
Hi Erik, we found a bunch of performance problems when using a lot of contextmenus on a single site. Within the jegoocontext-function you are registering the events onmouseover and onclick on the $(document) element for each menu - even if it's not yet open. We're using your menu in an ajax-powered application and so every postback registers us several new events and makes the menu very slow. A suggestion to work a round this problem would be to move the block starting with $(document).mouseover(function(e){ to the position immediately below the // Fade-in menu at clicked-position. $menu.css({ 'left': e.pageX + 'px', 'top': e.pageY + 'px' }).fadeIn(_menus[id].fadeIn); statement. This causes the event to be registered only when needed (when the menu pops up). Also it would be great to unregister the events as soon as the menu closes. Thanks for your great menu component and i hope you will be able to implement my feedback best regards Gerd
17-12-2009 13:29 Erik
Denis, you can send the modified version to info at planitworks.nl.
17-12-2009 13:45 Erik
Gerd, thanks for the feedback. I'm aware of the multiple events registered on the document, but i haven't had time to fix this. Your solution sounds good though.
19-12-2009 0:47 John Dell
Hi, I like this plugin, but I want to use it in an application that also uses prototype (for awhile until fully transitioned to jQuery), so I need to use jQuery.noConflict(); which means all the $ commands need to change to jQuery. This is standard for common jQuery plugins, so I'd recommend changing this. Thanks! John
19-12-2009 11:29 Peter
@John. Wrapping the code with (function($) { })(jQuery);. No need to use jQuery.noConflict for this plugin. The $ name is scoped to refer to the jQuery object.
23-12-2009 7:28 pay
do you know ? how to make contextmenu in jquery and Intergret to Zk ?
24-12-2009 16:38 MikeS
How would I go about making a menu option appear disabled?
27-12-2009 11:50 Peter
@pay, include the jquery library and the contextmenu script. You can use jQuery to make decisions or use your Zk framework.
27-12-2009 11:53 Peter
@MikeS, use the onshow callback to hide you elements. You can select your elements using jQuery and hide them.
28-12-2009 21:02 Nick
I would like to have the Escape key close the menu just like normal Windows UI. I'm sure I can use the onShow callback, but it should probably be a built-in function.
06-01-2010 21:04 John
Would you consider moving this project to github and maybe adding a google group for users to discuss this? I think you will find more patches and more and happier users. This is a great plugin! Thanks, John
06-01-2010 21:16 John
@Peter, thanks, the plugin is working fine even when I have prototype. my mistake. Thanks! Only problem I'm having is that when I right click, unless I hold down the right mouse button until the mouse is *over* the menu, it will disappear. Once I have moused over the menu, then it will stay regardless of whether I've move the mouse off the menu. Weird. Also, the menu is popping up maybe 5-10px down and right of the tip of the mouse, but in your demos, it opens exactly at the tip of the mouse. Not sure why that is happening. @Nick, the ESC key closes the menu for me using standard setup (no default changes or callbacks).
06-01-2010 21:47 John
ok, so it is exactly 5px down and right. My super-crude hack below (line 250-251) makes it work. I'm sure something in our site css is affecting it. Firebug isn't showing anything meaningful. $menu.css({ 'left': e.pageX - 5 + 'px', 'top': e.pageY - 5 + 'px' }).fadeIn(_menus[id].fadeIn); So, I'll stick with this for now. Thanks!
12-01-2010 22:39 roger
Thanks a lot by this great plugin! I would like to have the ability to use a CSS selector instead of just restrict the usage of the menu's id. Thanks again.
12-01-2010 22:52 roger
And FYI, me too would like to have the Escape key close the menu just like normal Windows UI (it is not working for me on FF3.5/IE8/Chrome 4 - also does not works in the examples).
17-01-2010 13:20 Erik
Roger, why would you want to use another selector instead of an id? The menu selector should only return a single menu because multiple contexts can be mapped to a single menu, but a single context cannot be mapped to multiple menus. Hence the obvious solution would be to select a menu by id.
17-01-2010 13:28 Erik
Keyboard support will probably be integrated into the next release
25-01-2010 22:48 roger
Hey Erik, You are right about the obvious solution is to use the element's id. Thanks!
11-03-2010 1:32 Catalin David
Hello! I've been trying out the context menu for a few days now and I am decided to use it in an academic project I am working on. Still, I have one question / request regarding dynamically generated menu entries: is this possible (and if yes, how?)? For example, I would create just an empty ul (with proper class attributes) element at the end of the body that I would fill later on, depending on where the user clicks with options available for that context. I've tried to add li elements from JavaScript, they appear on the menu, but the events do not get triggered (which rather defeats the purpose of a context menu). I would really appreciate if you could implement/fix this and, if not, at least give me some hints on how to implement it (though, I am rather novice with JS and jQuery). Thanks for this tool, Catalin
12-03-2010 17:41 Erik
Hi Catalin, If i understand you correctly, you want to view different menu-options depending on the clicked context. To achieve this you can either use multiple contextmenus, one for each context. Or you can use the onShow callback to show/hide menu items on the fly, depending on the context, for example like this: onShow: function(e, context){ // Show or hide menu-items based on context id. switch($(context).attr('id')) { case 'context1': $('#[MENU_ID] li.context2, #[MENU_ID] li.context3').hide(); $('#[MENU_ID] li.context1').show(); break; case 'context2': $('#[MENU_ID] li.context1, #[MENU_ID] li.context3').hide(); $('#[MENU_ID] li.context2').show(); break; case 'context3': $('#[MENU_ID] li.context1, #[MENU_ID] li.context2').hide(); $('#[MENU_ID] li.context3').show(); break; } } For this to work, you need to append just one contextmenu to the body consisting of all possible menu-options. I hope this helps.
12-03-2010 19:33 Erik
You can view an example via "Examples, onShow callback alternative".
16-03-2010 0:26 Tom
This is an amazing plugin - was so simple to get it up and running... great work! I couldn't find any information about licensing?
16-03-2010 0:29 Tom
Well of course as soon as I posted that, I found the information about licensing in the code itself. Thanks again!
20-03-2010 23:50 Gregory
Hi. I'm trying to use your plugin but I don't need it to pop after a right click. Is there a way to remap it on a left click? Thanks in advance.
21-03-2010 0:08 Gregory
Oh, I found it in the documentation. I'm so inattentive lol.
21-03-2010 14:42 Simon
This is an awesome plugin. I seem to have hit an anomoly though. The menu pop up does not appear near the mouse, it is offset to the right. The top and left properties are being set, presuambly by the plugin. It doesn't seem to be calculating the correct position. It is something to do with the margin:auto and centering of the content on the page. If i resize the browser window so the content is shown (no edge around the page) then the menu is the right place. The further expanded the window is, the further the menu is popping up from the mouse click point. Anything can be done to fix this? Many thanks
04-04-2010 12:10 Erik
Hi Simon, make sure to append the contextmenu(ul) directly to body and be certain no style rules interfere with the menu's style.
04-04-2010 15:31 XRumerTest
Hello. And Bye.
08-04-2010 17:25 Ron
Could you please provide details on licensing option?
18-04-2010 20:27 Erik
The plugin is dual licensed under the MIT and GPL licenses.
24-04-2010 20:53 Erik
Version 1.2.2 is released, which includes keyboard support.
21-05-2010 3:17 cStestiato
Thank you very well read allss textt about drsating and ilike it very much
09-06-2010 17:38 Jack
I think I allready have been told about this subject at pub 2 days ago by a friend, but at that time it didn't caugh my attention.
13-07-2010 13:07 Yafeng
I'm not sure about dual license mode. Is it licensed under MIT OR GPL,or MIT AND GPL?
24-07-2010 14:56 rolaca11
I want to ask you about how can (if it's possible) I give new icons to the context menu? Please e-mail me!
24-07-2010 17:42 Erik
@Yafeng, MIT Or GPL
24-07-2010 17:45 Erik
@rolaca11, icons are purely controlled by css. You can add a custom icon to the menu by prepending a span to the desired menu-item like this: <li class="icon"> <span class="icon MYCUSTOMCLASS"></span> (MENU-ITEM TEXT) </li> Next, copy your icon to the images/icons folder of the skin folder of your choice, for example "jeegoocontext/skins/cm_default/images/icons". Finally, add the following css-rule to your skin's stylesheet("jeegoocontext/skins/cm_default/style.css"): body ul.cm_default span.MYCUSTOMCLASS{background-image:url(images/icons/MYCUSTOMICON.gif)}
24-07-2010 19:49 rolaca11
actually, before writing this post, i have tried with exactly the same, and didn't work. I tried it now too, with the same result. :(
24-07-2010 20:17 rolaca11
I managed, to solve the problem, I forgot to upload the new files :)
04-08-2010 15:18 Henrik
I really dig this menu but I need to position the popup differently than the standard behavior. I want to trigger the popup from a button (with left click) and open the pop up below the button. It would be nice to give an element as a position reference for the popup and also be able to add optional horizontal and vertical offsets from the element position. Do you think you can implement that in a future release?
10-08-2010 4:19 Malith
Hi Erik, this is actually great. i'm using it with my application. in my case i need to disable the context menu when i show a hidden dialog on screen. how can i disable and re-enable the context menu? please help me.
16-08-2010 9:57 Erik
@Henrik, i can probably integrate this behavior into the next release. @Malith, the context menu can be disabled permanently for a certain context by calling: $(context).nojeegoocontext(); The best way to temporarily disable the context menu is to (conditionally) return false in the onShow callback like this: $(context).jeegoocontex(myMenu, {onShow: function(e, context){ if(myDialogVisible)return false;}}
30-08-2010 1:33 Sean
Hi, it is possible to dynamically populate the menu/submenu items? In my application the submenu items will be retrieved via an AJAX request.
13-09-2010 6:52 Luc
I have two submenus: "insert" and "append". From onShow, depending on the context, I show the ul containing the right "insert" submenu options, and I hide the other ones. Then i use .html() to copy the visible ul from "insert" to "append" submenu.. the submenu is displayed normally but hover is not added automatically to "append" submenu options.. It would be logical you bind events to menu items after onShow()
15-09-2010 9:25 Erik
@ Sean @ Luc, currently there is no support to dynamically add menu-items to an already initialized menu. I hope i can fix this in the next release.
20-09-2010 11:44 Sergio
Opera v10.50 allow mouse right-click!!!
20-09-2010 19:51 Luc
Erik: for my specific problem it works, just had to use .clone(true) to copy the submenu with the events bindings... It is also possible yet to hide or show menu items or submenus, or to change existing options text from onShow() depending on the context.
30-09-2010 22:26 Paul
Great plugin! Is there a way to open the menu from a custom event triggered from JQuery. (i.e. $('#mydiv').trigger('customEvent');)? thanks!
03-10-2010 12:57 Erik
@ Sergio, the new version which is soon to be released contains better support for newer versions of Opera. The current version relies on browser sniffing to detect Opera, the new version relies on feature detection.
03-10-2010 13:05 Erik
@ Paul, the menu can be opened via trigger but you need to provide it with an event object with the pageX and pageY properties set:

var e = $.Event('contextmenu');
e.pageX = 500;
e.pageY = 500;
$('myContext').trigger(e);
15-10-2010 13:21 Leonard
Great plug-in sadly it is not IE 9 compatible. The problem is that the e.pageX and e.pageY values remain undefined and the offset values as well. Therefore the menu position doesn't get updated and shown. I wasn't able to come up with a good solution to get these values defined, but I hope someone will find an easy fix.
24-10-2010 20:57 Erik
If e.pageX and e.pageY remain undefined in IE9, i think a lot of plugins are going to have trouble with IE9 as they are normalized properties of the jquery event object. I'll look into this issue as soon as IE9 is out of beta.
26-10-2010 14:09 Leonard
IE 9 seems to handle event completely different than before, so it really is a burden. I hope JQuery can quickly find a way to standardize this again, probably the plugin will start functioning like normal again. For now I forced IE 8 compatibility mode, however I have to give up on some of the features I would like to use in IE 9. Hope the JQuery team soon implements a solution.
10-11-2010 21:50 Stefan
Thank you very much for your wonderful plugin. I had the same issue with the wrong position when the menu div is not in the body element. I sent you the modified working version and hope it will be of use for you.
13-11-2010 9:07 Luc
Thanks for your work. I sent you a patch for version 1.3, allowing to release the right mouse button to select an option, for standard contextmenu behaviour compliance. Regards
15-11-2010 10:21 Luc
I changed the mouseup behaviour to match exactly google chrome's one (Before delay, don't select any option when mouse didnt move nor hide menu when mouseup occurs outside). You can get the patch on pastebin.com/eD2bhnbb
19-11-2010 12:00 Moiz
Hey, great plugin! I am running into a problem and I have no idea whats going on. On right click the menu does open but it doesn't hide on document click or when I enable autoHide. This is the problem only in firefox 3.6.10 linux. It works great on Chrome. Any suggestions? Thanks!
22-11-2010 12:19 Luc
MOIZ: pastebin.com/V0tnk4cQ ERIK: pastebin.com/W0KgFvd2
22-11-2010 12:20 Luc
50 chars is way too short :-D
04-12-2010 1:13 mates
Hey, good job. But I need help. On the page I have link with the attribute href="javascript: __doPostBack('grid','Sort$ident'), which displays context menu (...jeegoocontext('jg_menu', {event: 'click',...). Is there any way to run the original link event after select an item from the context menu? thanks a lot
10-01-2011 11:18 Luc
Here's the patch for enabling mouseup and adding a 'reset' method to hide the menu with $(document).jeegoocontext('reset'); Also fix a bug where unbind or expire was not called when running jeegoocontext again on the same selector (in that case menu handlers were called many times) http://pastebin.com/SmJ1TJy9 Thanks again !
10-01-2011 17:31 Niel
Great plugin, I Love it... Great work guys... Very easy to implement, few minutes of work and context menu starts working... again great work and thanks for all your effort.
04-02-2011 15:16 Steffen
Thx for this great tool. Two Questions - One: is it possible (maybe in future), to set the position of the menu to a special point of a clickable element (e.g. the menu opens always with the left bottom corner at the right upper corner of a button)? and Two: another nice option would be the opportunity to control the opening direction. Actually with openBelowContext the Menu opens downwards, it woud be nice if I could say open menu upwards. Best Regards Steffen
07-02-2011 15:48 Memborg
Looking forward to IE9 support.
04-03-2011 3:46 Ryan
How can you tell which dom element id was right clicked on?
13-03-2011 21:06 jonas eriksson
Hi, wonderfull plugin and nice that you added the ability to add/remove items in the context menu after init. However, it doesnt work for me :( I have included livequery and even tried to update livequery to the newest version. But when I add "livequery:true" to my menu options, nothing happens when I rightclick, no error, no menu, nothing :( Running Jquery version 1.4.4 and Firefox 3.6.15 It works perfectly without the livequery:true in options so I dont now what to do. Anyone else has the same problem ? One of the demo works (when adding items to the menu "live") so could it be that my jquery version breaks it ?
15-06-2011 13:55 smit
Hi, Is it possible modifiy to right to left dierction languages?
01-07-2011 2:15 Allie
Is there a way to get the properties of the selector? I am using it for a diary and want to find the properties of the selector to customise the context menu. Any suggestions how I can do this from within the script. Thanks.
01-07-2011 2:35 Allie
Found it. Didn't read the documentation properly. ~Duh. For those who did the same mistake as me, its $(context) for the callbacks. BTW, great plugin.
01-07-2011 16:14 Sam Smith
Hi. Love it, but could you please clarify the license - and ideally include a copy in the download. The GPL and MIT are different, with the MIT license being preferred as it is more liberal than the GPL so if we get a choice I prefer the MIT license.

Also maybe the page could link to the licenses?
19-07-2011 14:51 Lutz
Hi. I'd need to raise the same issues as Sam. I would like to use the jeegoocontext commerially which would work with the MIT license but not with GPL (contributing the product to open source is not an option). Could you please clarify which one applies (and of cause I'd like the MIT more ;). Thank you!
19-07-2011 14:55 Erik
You can use either.
22-07-2011 10:42 Alessandro
Can I get the text value of the selector clicked?
25-07-2011 15:31 Affan
This is a lovely plugin. I used it on local host by when I moved it online I experienced a problem: Its main menu appears towards right and bottom of original mouse pointer.
26-07-2011 11:22 Alex
Great work Erik! If I may, I would suggest a small change that might fix menu positioning issues within nested divs, and some jquery plugins (e.g. datatables): // Fade-in menu at clicked-position. $menu.css({ 'position': 'fixed', // I would add this line 'left': startLeft + 'px', 'top': startTop + 'px' }).fadeIn(_menus[id].fadeIn);
29-09-2011 5:33 Bob
Hi Erik ! it appears that there is a bug in IE 7 & IE9 where if you keep right-clicking on the trigger area. it remembers the previous state of the submenus however, it's showing the submenu without the options even the menu is not selected. How do we resolve this issue ?
29-09-2011 5:43 Bob
For example, initially, you select a submenu on the third level submenu and when you right-click again it's showing the third level submenu container without any options and even the parent menu hasn't been selected yet. it looks like it remembers the previous state of the context menu.
08-10-2011 16:12 sadra
Hi, this code fixed for RTL and LTR direction by me, but has a small problem, can you help me to correct it? new modified code sent to "info@planitworks.nl" thanks... i'm wait
23-12-2011 17:52 Kert
Thanks guys, I just about lost it looikng for this.
02-01-2012 0:16 DanH
Is there some way to keep the click event from being swallowed? I have a grid, and I want the click event to do it's normal thing of selecting the row, but also have the context menu pop.
02-01-2012 0:31 DanH
To solve my problem, I'm using the default right-click event, then using the onShow callback to call a click. Feels like a hack, but it's working.
10-01-2012 15:30 Julian
Nice plugin! Any change that the plugin will work with the default 'live' functionality of jQuery instead of the liveQuery plugin?
08-04-2012 4:54 Steve
Perfect guide! I'm only beginning out in mteirakng and advertising and attempting to find out to perform it nicely assets just like this guide are very useful. As our company is primarily based in america, it's all somewhat new to us. 0

Uw commentaar

Recente blogs

Componenten

JeeGooContext, JeeGooPopup, JeeGooColor, JeeGooCallout

Contact

Burgemeester Manderslaan 36
4881 EJ, ZUNDERT
T. 076 597 77 15
E. info@planitworks.nl >>>