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 8519161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:10:23+00:00 2026-06-11T06:10:23+00:00

Thanks in advance . I am creating one function as follows . //requestFile is

  • 0

Thanks in advance .

I am creating one function as follows .
//requestFile is implemented in NPAPI Plugin , Getting initFS as an NPObject when task is complete i am calling NPN_InvokeDefault on this object.

window.requestFile("test",true,initFS);
//After this function initFS is getting called.
function initFS(fs) {
 alert('Inside initFS'); //alert is coming.
 //testFunc is implemented in NPAPI Plugin, it will return true if it is get called
 alert(fs.testFunc());   // It is not getting called.
 alert(fs.testCall());   //It is not getting called.
 }
function testCall() {
alert('Inside testCall function');
}

I am not getting it which kind of object is returned from Plugin after calling NPN_InvokeDefault. and how to use it in javascript . Specifically i want to return NPObject specially for my plugin , and want to call Plugin methods from javascript.

How to use Asynchronous Javascipt functions with NPAPI Plugins ? any sample will be appreciated.

  • 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-11T06:10:24+00:00Added an answer on June 11, 2026 at 6:10 am

    Use this (fiddle) as a starting point:

        var testcall=function() {
        alert('Inside testCall function');
        }
    
        var fs={
            testFunc: function(){console.log("succes")},
            testCall:testcall
        }
    
    
        //After this function initFS is getting called. 
    
        initFS(fs) //<--PASS in fs also
    
    function initFS(fs) {
         alert('Inside initFS');
         //testFunc is implemented in NPAPI Plugin, it will return true if it is get called
         fs.testFunc();   // It is not getting called.
         fs.testCall();   //It is not getting called.
         }
    

    You need to pass in the fs object into initFS

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Thanks in advance to anyone who can think of a more efficient or a
Thanks in advance for your help. I have a need within an application to
thanks in advance for looking at this. Essentially, I'm calling didInsertElement() and binding an
Thanks in advance for your assistance. I have the following exported part: [Export (typeof(INewComponent))]
Thanks in advance for any help you can provide on this issue! I manage
Thanks in advance for taking the time to read my question. I'm using MySQL
Thanks in advance for your help experts. I want to be able to copy
Thanks in Advance for reading and answer this question. I got button in asp
thanks in advance for reviewing my post. I've only been using jquery for about
Thanks in advance. This is my sample code. Whenever i try to run it

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.