Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8543917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:25:30+00:00 2026-06-11T12:25:30+00:00

I wrote an extension for Firefox with an overlay. When I click on the

  • 0

I wrote an extension for Firefox with an overlay.

When I click on the principal button, the extension loads entconnect.entImmediat, but when I click on “Changez vos identifiants”, the extension loads entconnect.openLogs AND entconnect.entImmediat. How can I do for just load entconnect.openLogs when I click on “Changez vos identifiants”?
This is the code of my overlay :

<overlay id="entconnect-overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script src="chrome://entconnect/content/entconnect.js"/>
<toolbarpalette id="BrowserToolbarPalette">
    <toolbarbutton class="toolbarbutton-1 chromeclass-toolbar-additional" id="entconnect-addbar" label="Allez sur votre ENT" type="menu-button" oncommand="entconnect.entImmediat();">
        <menupopup>
            <menuitem label="Changez vos identifiants" oncommand="entconnect.openLogs();"/>
        </menupopup>                             
    </toolbarbutton>
</toolbarpalette>
</overlay>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T12:25:31+00:00Added an answer on June 11, 2026 at 12:25 pm

    The command event bubbles up meaning that it will be received by event handlers further up in the DOM hierarchy. You can prevent the event from bubbling further up if you already handled it:

    oncommand="entconnect.openLogs();event.stopPropagation();"
    

    Or you can look at the event target:

    oncommand="if (event.target.localName != 'menuitem') entconnect.entImmediat();"
    

    Or you can simply process only the events that were triggered at the current element:

    oncommand="if (event.eventPhase == event.AT_TARGET) entconnect.entImmediat();"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wrote a custom ordering LINQ extension method as below but I think it
In the Javascript for a Firefox extension, you can call gBrowser.getBrowserForTab but there is
I wrote firefox extension and want to be able to install it to firefox
I am developing my first firefox extension so I created a menu-button element and
I recently found out about C# extension methods and wrote this one: /// <summary>
I set up Open-xchage(wrote on Java) on openSUSE and installed SOAP extension on it.
I have a question about how to structure communication between a (new) Firefox extension
I wrote an extension in C++ that uses libtidy, and it runs perfectly under
I wrote the following extension methods for Session so that I can persist and
I want to write a simple firefox extension. How can I get a reference

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.