Questions tagged [jint]

Jint is a JavaScript interpreter for .NET.

Jint is a script engine based on the JavaScript language. Using Jint, developers can provide fully scriptable applications, execute .NET code without compiling, or create external configuration logic, using the most used script language.

Jint aims at providing every JavaScript functionalities to .NET applications, and bindings to .NET languages can be done in both sides. Jint scripts can use any .NET object from your application, and use every part of the .NET base class library.

Jint has been rewritten completely and is now hosted on Github.

Jint Information (codeplex archive)

118 questions
0
votes
1 answer

Dealing with an object of certain type, that can be known in runtime only?

I have a question, we have an ASP.NET web app that can service multiple clients. The only difference is that the app needs to convert some JSON string into a .NET object of type in order to pass that object to a WCF service. For that purpose I…
monstro
  • 6,254
  • 10
  • 65
  • 111
0
votes
1 answer

How can i use GetValues when running Js codes by using Jint?

My question is primitive. But it is very useful. I Checked Sebastien Ros Jint application on GitHub. How can I GetValue property multiple times? GetValues(x,y,z...) or GetValue("x").GetValue("y").GetValue("z"). because I need x,y,z.. result. not…
Penguen
  • 16,836
  • 42
  • 130
  • 205
0
votes
1 answer

Problems in ctor of Jint in .NET 4.5

I'm using Jint, the 4.5 .NET version, of Sebastien Ros. And javascript prototype objects, and I want to call the javascript prototype constructor with an object. I run into some problems here. Someting like this: function Panel(objectBehind) { …
Roland Roos
  • 1,003
  • 10
  • 4
0
votes
1 answer

Jint 2/ECMAScript error messages are a little lacking

I'm in the process of modifying the Jint 2.0.0 javascript engine to my bidding, but I'm discovering that there's a severe lack of error messages to return to the user. My application must be usable by beginners to JS so I really want to be able to…
dakotapearl
  • 373
  • 1
  • 15
0
votes
1 answer

Unable To Install Jint 2.1.0.0

I am trying to use Jint in my C# WinForms Application but NuGet is refusing to install the package. I can install other packages perfectly fine including this one called JavaScriptEngineSwitcher.Jint. I googled around and couldn't find anyone else…
user2816674
0
votes
1 answer

Specified Cast Is not valid in Jint 2.0

I'm just starting to use Jint 2.0 in my c# application. However I cannot seem to be able to retrieve a value from within Jint. Even with the example code provided: var engine = new Jint.Engine(); engine.Execute(@" function…
Scottingham
  • 906
  • 2
  • 11
  • 26
0
votes
1 answer

JINT - Unable to "console.log"

I am new to JINT, and trying to just do some basic tests to kind of learn the ropes. My first attempt was to just store some javascript in my database, load it, and execute it in a unit test. So that looks essentially like this.... [Fact] public…
Ciel
  • 4,290
  • 8
  • 51
  • 110
0
votes
1 answer

How to use jint with XNA to build a game engine?

I want to create a game engine in XNA that has scripting abilities (Jint). How do I go about doing this? (General idea of the direction to proceed - not necessarrily deatils). Thanks Q
user241949
  • 111
  • 1
  • 9
0
votes
1 answer

Running C# code from JINT (server side)

This is probably not the correct use of JINT, and if anyone knows of other systems that can do this, I am open to them, as long as they can serialize to a string - but essentially I need to find a way to use JINT to parse and run C# code. I am very…
Ciel
  • 17,312
  • 21
  • 104
  • 199
0
votes
1 answer

CsQuery or Jint? Javascript data manipulation in C#

I'm writing a web crawler for statistic purposes. The website dynamically updates through javascript. I managed to parse the HTML file and copy all script values into an array. How do i re-execute these scripts locally or on-the-fly in order to get…
-1
votes
1 answer

GetCompletionValue with IIFE trigger errors

I get a exception if I try to use GetCompletionValue with Invoker. How can i execute the run function with IIFE lexical scope? Javascript: (function(){ function run() { logger('teste logger'); var file = new…
-1
votes
1 answer

Add multiple formula arguments

I have a Javascript formula saved in Database as a string and want to calculate it using JINT in C#. The formula has multiple variables and need to set them with their values. int height = 10 int length = 10 int width = 5 string jsFormula = "height…
userNath
  • 27
  • 5
-1
votes
1 answer

Using jint to decode Jsfuck

I'm trying to use jint to decode jsfuck, and am basing myself off this project: https://github.com/enkhee-Osiris/Decoder-JSFuck (it's the only one I've found that can decode the jsfuck correctly). The following c# isn't working…
user2950509
  • 1,018
  • 2
  • 14
  • 37
1 2 3 4 5 6 7
8