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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:21:46+00:00 2026-05-18T20:21:46+00:00

I am thinking of designing a webbased frontend to a dataanalysis package. This is

  • 0

I am thinking of designing a webbased frontend to a dataanalysis package. This is what I have in mind:

Data-analysis jobs are submitted to a queue.

People can login to the frontend and choose to run a job on the local machine or add a new job to the queue.

Details:

  1. A person logs into the web-application and can either choose to run an exisiting job in the work queue on the local machine or assign a new job to the work queue

  2. If a job is selected to be run on the local machine, the webpage queries the package installed on the local machine : “This is the job I have for you. How long would it take for you to finish this?”

    2.1 The package would return a value (based on heuristics) to the webpage

    2.2 The webpage can, depending on the value returned, choose to
    allocate the job to the current
    machine

    2.3 If the job is allocated to the current machine, the backend package
    goes on its way all the while
    keeping the webpage updated with the
    progress it is making.

    A job can take from a few seconds to
    a few hours to finish.

    2.4 Any time the webpage can tell the package “You are taking too long –
    send me what you have” or perhaps “I have something more important for you –
    send me what you have”.

    The package can send the data it has by connecting to the webapp backend
    directly at this point.

This needs to run on Windows and Linux – so I will be using the npapi plugin architecture.

The webpage would do most of the interfacing via Javascript.

My questions are:

  1. How do I make the C++ npapi plugin return a value (a json structure) to the webpage javascript and then have a function in the webpage execute without the webpage asking the plugin to do it (to achieve 2.1). That is – the plugin initiates the interaction instead of the usual “webpage asks the plugin to do something”

  2. Is there a better way to implement 2.3 than setInterval?

  • 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-05-18T20:21:46+00:00Added an answer on May 18, 2026 at 8:21 pm

    How do I make the C++ npapi plugin return a value (a json structure) to the webpage javascript and then have a function in the webpage execute without the webpage asking the plugin to do it (to achieve 2.1). That is – the plugin initiates the interaction instead of the usual “webpage asks the plugin to do something”

    Use this example.

    Is there a better way to implement 2.3 than setInterval?

    setInterval works well enough.

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

Sidebar

Related Questions

I am thinking about a DB Design Problem. For example, I am designing this
I am working on designing and building a desktop application. I am thinking about
I have recently been thinking about the difference between the two ways of defining
I'm thinking of designing & implementing my own SQL-equivalent (DDL+DML) that is... a pure
I'm thinking of designing a database schema similar to the following: Person ( PersonID
I'm thinking about designing a method that would return an object that implements an
I'm thinking about possibly designing/building a language at some point, and what are the
I am designing a database and was thinking about the need for a one
I am designing a system for a customer. We are thinking about using Wordpress
I am designing my database so i can do incremental backups. I am thinking

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.