I have been trying your different ideas:

1.- If I don add the listener to the window element the menuItem does not appear (the function is called, and it set the hidden attribute to false but it is not rendered);
2.- gContextMenu only works if the event is listened from the contentAreaContextMenu (if the listener is in window it sais that it has no properties).

I am starting to think that the problem is with the xul file that is not properly formated but I can not find the problem with it.

With the listener in the window, using setAtributte and setting the hidden attribute in the menuitem element it works almost all the times (90%) but I can not find a pattern about working or not.

On 2/2/06, Ramiro Aparicio <[EMAIL PROTECTED]> wrote:
Thats why I have:

   if (event.target.id != "contentAreaContextMenu") return;

In the function code, I will try adding the listnerer to the contentAreaContextMenu element and removing that becouse it will trigger a less, but it seems pretty stable now.

On 2/1/06, Neil <[EMAIL PROTECTED]> wrote:
Ramiro Aparicio wrote:

> window.addEventListener("popupshowing", foxgame_initPopupMenu, true);

That's not a good idea - that will trigger your code on any menu opening
at all.
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners



--
Hasta Otra

Ramiro Aparicio

---------------------------------------------------------------------------------
Webmaster de http://gs151.tk y http://www.climaxsl.es



--
Hasta Otra

Ramiro Aparicio

---------------------------------------------------------------------------------
Webmaster de http://gs151.tk y http://www.climaxsl.es
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to