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

  • SEARCH
  • Home
  • 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 7800237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:34:12+00:00 2026-06-02T00:34:12+00:00

* Please note that this is not for a web based application, it’s windows

  • 0

*Please note that this is not for a web based application, it’s windows based.

I’m building an application where I will need the user to submit simple javascripts that will be run by the application.

The scripts will call functions that are part of the c# build.

An example:

C# code:

public void helloWorld()
{
    Debug.WriteLine("hello world");
}

Javascript submitted by user:

helloWorld();

The JavaScript would be parsed by the application at runtime and then call the required functions in my C# code.

Why?..

My app will be used by people with very little programming experience, they enter very simple JavaScripts and the app will attempt to automate a few tasks on the users computer. So my reason for using JavaScript is because it’s simple and very easy to learn for someone with little experience.

  • 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-02T00:34:13+00:00Added an answer on June 2, 2026 at 12:34 am

    It sounds like you want a JavaScript parser for your application. To be honest, I dont think what you’re doing is possible, considering the context of the script and your code is different. However, this project seems to be doing something that may get you to the right place:

    http://javascriptdotnet.codeplex.com/

    Personally, I would think making some kind of XML format would be useful (like how UrlRewriter.net makes rewriting URLs easy):

     <xml>
     <commands>
         <!-- Expose a Set of Condition Objects to Select From -->
         <if condition="YourApplication.Conditions.RightClickOnDesktop">
             <print text="HelloWorld" />
         </if>
     </commands>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please note that this is not homework and i did search before starting this
Please note that I did ask this on Super User and received absolutely no
I’m using Drupal (please note that this is not a Drupal related question), and
[Please note that this is a different question from the already answered How to
Please note that this question is from 2008 and now is of only historic
Can I write XSD schema for this? Please note that the category is repeated
Please note: This is a question about the Eclipse plugin Subversive , and not
Please note this is not a question about online/hosted SVN services. I am working
Please note this link Render HTML as an Image is not helpful. In previously
Before downvoting, please note that I am only asking for expert opinion, and not

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.