ძიება მხარდაჭერაში

ნუ გაებმებით თაღლითების მახეში მხარდაჭერის საიტზე. აქ არასდროს მოგთხოვენ სატელეფონო ნომერზე დარეკვას, შეტყობინების გამოგზავნას ან პირადი მონაცემების გაზიარებას. გთხოვთ, გვაცნობოთ რამე საეჭვოს შემჩნევისას „დარღვევაზე მოხსენების“ მეშვეობით.

ვრცლად

How to detect if a plugin is waiting for permission?

  • 6 პასუხი
  • 1 მომხმარებელი წააწყდა მსგავს სიძნელეს
  • 2 ნახვა
  • ბოლოს გამოეხმაურა szanto.cosmin

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)

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.

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

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...

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.

@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