Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

How to detect if a plugin is waiting for permission?

more options

I have a instance of a NPAPI plugin which is created using the embed element. I need to call some of the functions of the plugin when the page is loaded (<body> onload function) but all the calls fail since the user needs to first allow the plugin to load. When do I know that the user has allowed the plugin to be loaded? Is there a callback which notifies that a plugin can be used?

I have a instance of a NPAPI plugin which is created using the embed element. I need to call some of the functions of the plugin when the page is loaded (<body> onload function) but all the calls fail since the user needs to first allow the plugin to load. When do I know that the user has allowed the plugin to be loaded? Is there a callback which notifies that a plugin can be used?

Toutes les réponses (6)

more options

With the last Firefox upgrade, some plugins are no longer enabled until you enable it.

Open the Add-ons Manager. Press the <Alt> or <F10> key to bring up the tool bar. Followed by;

Windows; Tools Linux; Edit Mac; application name

Then Add-ons.

Hot key; <Control> (Mac: <Command>) <Shift> A)

On the left side of the page, select Plugins.

BTW; At the top right is a link to check your plugins.

more options

Mozilla is changing the Plugin API and will be eliminating plugin support in the future.Plugins are now considered a "legacy technology".

https://developer.mozilla.org/en-US/Add-ons/Plugins https://developer.mozilla.org/en-US/Add-ons/Plugins/Gecko_Plugin_API_Reference

more options
more options

The advice in that article about making the plugin visible is really important — and a backwards compatibility problem with sites that show a JPEG preview in front of the Flash player that gets cleared one the video loads. Sometimes the only way I realize the problem of video never playing is if I use

View > Page Style > No Style

since that turns off the style rules that overlap the two elements. Hmm...

more options

Hi szanto.cosmin, I think you will need to test for the method before trying to invoke it. You may want to display a message to the user if it isn't available, or use window.setTimeout() to monitor for when the plugin is available.

more options

@cor-el I'm trying to set a script callback to determine when a plugin is activated, but the callback is never called. Here's a simple example in which I reproduced my case.

<!DOCTYPE HTML>
<html>
  <head>
    <title>Test</title>
  </head>
  <script type="text/javascript">
    function pluginCreated() {
      alert("Plugin created");
    }
  </script>
  <body>
    <object id="client" type="application/x-test">
      <param name="callback" value="pluginCreated()">
    </object>
  </body>
</html>

Modifié le par cor-el