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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:11:57+00:00 2026-06-11T19:11:57+00:00

In javascript my code will be as follows: function start() { var start =

  • 0

In javascript my code will be as follows:

function start() {  

  var start = document.getElementById('start'); //start is object for my plugin
  if(start){
    getAsLoad(start);
  }
} 
function getAsLoad(startObj) {
var load = startObj.startMethod();

  // Handle progress, success, and errors
  load.onload = loaded;
  load.onerror = errorHandler;
}

function loaded(evt) {  
  var StringData = evt.target.result;
  alert(StringData);      
} // Like loaded similar code for errorHandling

How to start it in plain NPAPI Plugin , the event handling mechanism , I know in firebreadth it is a cakewalk , as per my requirement i can’t use it. so this kind of thing i have to implement in NPAPI Plugin. Thanks in advance.

  • 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-11T19:11:58+00:00Added an answer on June 11, 2026 at 7:11 pm

    The easiest way to do it would be to have javascript call your plugin.

    If you want to do it from the plugin, though, you just get the DOM window NPObject and start Invoking methods and getting properties, etc.

    For example, to get “start” you could call getProperty with “document”, then call Invoke on the resulting NPObject with “getElementById” and “start” as the parameter.

    The tricky part comes up if you want a callback into your plugin, in which case you’ll have to create an NPObject that handles InvokeDefault which is what will be called when the callback fires. It’s a bit of a pain, but from there the details are the same as javascript, just a little more cumbersome

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

Sidebar

Related Questions

My JavaScript code is as follows: $(document).keydown(function(event){ var move, inter; clearInterval(inter); inter = setInterval(move
The code is as follows: <body> <a href="javascript:;" id="test">hello</a> </body> <script type="text/javascript"> document.getElementById("test").addEventListener("click", function
javascript code: function getCheckbox(name,id){ var check = 0; var deger = option-checkbox-+id; var dom
Javascript Code YAHOO.util.Event.onDOMReady(function (ev) { var carousel = new YAHOO.widget.Carousel(container, {isCircular: true, numVisible:1}); console.log(carousel.set('navigation',
I have some Javascript code that will programmatically register an COM interop assembly by
I am looking for javascript code which will give me 1st date of the
What I'm trying to do is run some JavaScript code that will enter text
Javascript I have code that will hide various sections in a MS CRM form
I'm newer in JavaScript.So maybe my question will seem naive. My JavaScript Code: <script
I have this code: <script id=toModify > Invalid javascript that will cause errors </script>

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.