לאתר זה תהיה פונקציונליות מוגבלת בזמן שאנו מתחזקים אותו לשיפור החוויה שלך. אם מאמר מסויים לא פותר את הבעיה שלך וברצונך לשאול שאלה, קהילת התמיכה שלנו מחכה לעזור לך ב־Twitter תחת ‎@FirefoxSupport וב־Reddit תחת ‎/r/firefox.

חיפוש בתמיכה

יש להימנע מהונאות תמיכה. לעולם לא נבקש ממך להתקשר או לשלוח הודעת טקסט למספר טלפון או לשתף מידע אישי. נא לדווח על כל פעילות חשודה באמצעות באפשרות ״דיווח על שימוש לרעה״.

מידע נוסף

How to detect if a plugin is waiting for permission?

  • 6 תגובות
  • 1 has this problem
  • 2 views
  • תגובה אחרונה מאת 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