Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

How to detect if a plugin is waiting for permission?

  • 6 отговора
  • 1 има този проблем
  • 2 изгледи
  • Последен отговор от szanto.cosmin

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?

Всички отговори (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>

Променено на от cor-el