Questions tagged [ironjs]

IronJS is an ECMAScript 3.0 implementation built on top of the Dynamic Language Runtime from Microsoft which allows you to embed a JavaScript runtime into your .NET applications.

IronJS is an ECMAScript 3.0 implementation built on top of the Dynamic Language Runtime from Microsoft which allows you to embed a JavaScript runtime into your .NET applications.

License

IronJS is released under the Apache License Version 2.0.

Requirements

What you need to use IronJS:

  • .NET 3.5 (Src/CLR2.sln)
  • .NET 4.0 (Src/CLR4.sln)
  • Mono 2.10 (Src/mono-build.sh)

IronJS also has experimental support for .NET 2.0 and 3.0. Compile using the CLR2 solution and set the extra NET2 flag.

Additional Reading and Source

10 questions
11
votes
4 answers

Information about IronJS

Can any one point out as where can I get some tutorials about IronJS and how to call a method written in IronJS from C# 4.0 Thanks C#4.0, IronJS
user372724
5
votes
1 answer

How to invoke a function written in a javascript file from C# using IronJS

I just download the Iron JS and after doing some 2/3 simple programs using the Execute method, I am looking into the ExecuteFile method. I have a Test.js file whose content is as under function Add(a,b) { var result = a+b; return…
learner123
  • 243
  • 1
  • 4
  • 10
4
votes
3 answers

Anyone using IronJS yet?

I'm just wondering if there is anyone else using IronJS within their apps yet? IronJS is really awesome as it's JavaScript on the DLR. Personally, I've been waiting to be able to write both server-side and client-side code in ASP.NET / ASP.NET MVC…
Chris Pietschmann
  • 29,502
  • 35
  • 121
  • 166
3
votes
3 answers

IronJS / Twilio Browser Soft Phone

I'm creating a Fiddler extension that is simplifying my interaction with Twilio during development. I'm about to release it to the wild, but I would like one more feature before I do so. I'm able to return the various phone numbers on my Twilio…
codeputer
  • 1,987
  • 3
  • 19
  • 45
3
votes
1 answer

Can't use the .length property with IronJS and ArrayObject

I am using IronJs's latest version (0.2.0.1) and my js scripts do not properly retrieve the length of an array that has been set to the js engine using an IronJs.Runtime.ArrayObject. However, my variable is well recognized as an array, as shown in…
Benoit Patra
  • 4,355
  • 5
  • 30
  • 53
2
votes
1 answer

IronJS CommonObject, are dynamic properties possible?

In IronJS, we have a custom object derived from CommonObject. We're wanting to intercept calls to undefined properties on the object, and provide dynamic responses. (This is required, as it is not possible in our situation to preregister all the…
2
votes
1 answer

IronJS: How to parse JSON(send as string parameter) to a method in JavaScript function

I am new to IronJS and facing difficulty parsing JSON in JavaScript method. My C# Code string jsonString = "{\"Name\": \"Ankur\", \"Sex\": \"Male\"}"; var o = new IronJS.Hosting.CSharp.Context(); o.ExecuteFile(@"C:\CustomScript.js"); var handleJson…
Ankur Nigam
  • 83
  • 1
  • 8
1
vote
1 answer

ironjs: returning objects to JS

Using Ironjs. I have a c# function registered as a JS function (via SetGlobal) It gets called , but I want to return a value to from that function. The value is an IEnumerable of CLR objects. Using Jint this just works: I return the object and can…
pm100
  • 48,078
  • 23
  • 82
  • 145
1
vote
1 answer

Predefined type CallSite is defined in multiple locations

I get errors from both build and website precompile on App Harbor that seem to originate from multiple versions of the C# dynamic assemblies. They both start with warnings that look like: 2>CSC : warning CS1685: The predefined type…
kelloti
  • 8,705
  • 5
  • 46
  • 82
0
votes
2 answers

How to evaluate a dynamic expression using IronJS?

I have an expression like "(((2+5)*1000)/((30-20)*7))" How can I evaluate the expression using IronJS from C#. The expected result is 100. I tried the top two rated answers described in How can I evaluate a C# expression dynamically? and it worked…
priyanka.sarkar
  • 25,766
  • 43
  • 127
  • 173