Okay, so searching and searching I found that the problem is really in
this block:

    $.each(cur.bindings, function(id, func) {
      $('#'+id, menu).bind('click', function(e) {
        hide();
        func(trigger, currentTarget);
      });
    });

This is for some reason not working for firefox. When I remove menu
then it works, but then it starts iterating through all values in the
nested tree. Nobody seems to be looking for the same feature?

On 14 Feb, 03:37, micho <mich...@gmail.com> wrote:
> Okay, so I have now located the problem. Why does this row only work
> in IE, but not in Firefox?
>
>                .bind('click', function(e) {
>                 e.stopPropagation();
>
> Anyone out there???
>
> On 13 Feb, 22:27, micho <mich...@gmail.com> wrote:
>
>
>
> > Note that the contextmenu as such appears in both IE and Firefox, but
> > the problem is when I try to left click a menu item in the context
> > menu. Then the binding only works in IE but not in Firefox. Anyone??
>
> > On 10 Feb, 02:21, micho <mich...@gmail.com> wrote:
>
> > > I'm using the "jQuery contextmenu plugin" combined with "jQuery
> > > treeview async plugin". This means that I load in all data into the
> > > treeview from the database. Next step is that I want to be able to
> > > right click these dynamically loaded elements and alert the id of each
> > > element. I get it working in IE, but not in firefox. Any ideas why it
> > > would not work in firefox??
>
> > > jQuery(document).ready(function(){
>
> > >         jQuery("#black").treeview({
> > >                         animated: "1",
> > >                         url: "source.php",
> > >                         persist: "cookie",
> > >                         cookieid: "mtree"
> > >                 });
>
> > >                 jQuery('ul li').livequery(function() {
> > >                 jQuery('span.folder, 
> > > span.file').contextMenu('theContextMenu', {
>
> > >                 bindings: {
>
> > >         'edit': function(t) {
>
> > >                   editItem(t.id);
>
> > >         },
>
> > >         'email': function(t) {
>
> > >           alert('Trigger was '+t.id+'\nAction was Email');
>
> > >         },
>
> > >         'save': function(t) {
>
> > >           alert('Trigger was '+t.id+'\nAction was Save');
>
> > >         },
>
> > >         'delete': function(t) {
>
> > >           alert('Trigger was '+t.id+'\nAction was Delete');
>
> > >         }
>
> > >       }
>
> > > });
> > > });
> > > });- Dölj citerad text -
>
> > > - Visa citerad text -- Dölj citerad text -
>
> > - Visa citerad text -- Dölj citerad text -
>
> - Visa citerad text -

Reply via email to