Questions tagged [jurassic]
Jurassic is an implementation of the ECMAScript language and runtime. It aims to provide the best performing and most standards-compliant implementation of JavaScript for .NET. Jurassic is not intended for end-users; instead it is intended to be integrated into .NET programs. If you are the author of a .NET program, you can use Jurassic to compile and execute JavaScript code.
18
questions
1
vote
0answers
260 views
Is it possible to call Cesium functions from C# using Jurassic
Cesium, the javascript globe viewer, has utility functions that are useful for manipulating data when creating czml objects. When creating czml in C# to be streamed to cesium it would be handy to be ...
1
vote
0answers
68 views
C# create typed object from anonymous json [duplicate]
In my code I make a web request and receive back html, I use Jurassic Engine to map that data to a stringified JSON object.
var engine = new Jurassic.ScriptEngine();
var result = engine.Evaluate("(...
1
vote
1answer
247 views
Is it possible to expose a .NET object to JavaScript which has a method returning an IEnumerable?
I'm trying to create a .NET class that will be exposed to JavaScript via the Jurassic JavaScript engine. The class represents an HTTP response object. Since an HTTP response may have multiple ...
0
votes
1answer
405 views
evaluate with jurassic js code, which modify html
I'm trying to reimplement getting captcha inside c# application. Having problem, because of no experience in JS.
GET-request returns data, which contains captcha src tag, empty by default.
...
&...
0
votes
1answer
168 views
In Jurassic, how do I limit script running time?
I am implementing Jurassic script engine, how do I limit how long a script will take?
string ExcutingFunction = " for(var i=0;i<1000000;i++){ i%2; } ";
ScriptEngine ScrptingEngine = new ...
0
votes
1answer
1k views
ASP.NET Web API returning C# class
In Web API Controller action method returns C# class, like that:
public class ShipController : ApiController
{
[HttpGet]
public Cell GetShip()
{
return new Cell(new ScriptEngine())...
1
vote
0answers
187 views
Could not load type 'System.Runtime.Serialization.ISerializable'
I'm getting this error when I try to use Jurassic.ScriptEngine in my WinPhone 8.1 Project.
The entire error message:
Could not load type 'System.Runtime.Serialization.ISerializable' from assembly '...
1
vote
1answer
236 views
Execute function with complex parameters
For a not relevant reason for this question, i need to call a javascript function, defined inside a js file, from a .net desktop application and get the result.
I'm using Jurassic to do this. ...
0
votes
1answer
595 views
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")....
0
votes
0answers
432 views
Get value of remote JS var with Jurassic Script Engine
My remote js file as below
(function(window,document){
var config = {
'placeHolder' : 'content_div'
};
var html = "blaaa blaaa";
})(window,document);
I would likte to get ...
0
votes
1answer
853 views
is it possible to get js variable to assignt c# string with using Jurrassic Library
I am getting js script from remote html with using HtmlAgilityPack as below;
....
string JsVars = _HtmlDocument.DocumentNode.SelectSingleNode("//script[contains(text(), 'blablaa')]").InnerText
...
3
votes
2answers
837 views
Using Jurassic to precompile a JsRender template server-side
I'm attempting to precompile JsRender templates from a class library written in C#, using the Jurassic script engine to execute JsRender.
Here is my code:
var engine = new Jurassic.ScriptEngine();
...
0
votes
1answer
617 views
Include jQuery in Javascript file that won't be run inside webpage [duplicate]
I am using Javascript to create a standalone script that will be invoked by a C#.NET application. It will not run within a browser, instead it will use the Jurassic engine.
I want to be able to use ...
1
vote
1answer
224 views
How to run Jurassic (js engine) on wp7 and wp8
I've tried to install jurassic on my project using nuget, well, on windows 8 no problems it works, but neither in windows phone 7 and windows phone 8 won't compile...
any Ideas, I know (from comment ...
4
votes
0answers
577 views
How to integrate JavaScript Compiler (like Jurassic, ClearScript) into Visual Studio 2010 shell
I have a project in which I have to support javascript debugging from Jurassic or ClearScript or any other open source java script compiler for .net into to the Visual Studio 2010 Isolated shell. My ...
1
vote
1answer
359 views
Possible to Yield/Sleep/throttle another thread while it is executing a method in an external library - specifically Jurassic?
I am using a .Net JavaScript implementation called Jurassic to run user-controlled scripts within my .Net 4 WPF application coded in VB.Net - C# answers are fine. The script engine runs on its own ...
9
votes
1answer
16k views
Load a DOM and Execute javascript, server side, with .Net
I would like to load a DOM using a document (in string form) or a URL, and then Execute javascript functions (including jquery selectors) against it. This would be totally server side, in process, no ...
2
votes
2answers
798 views
Getting JS error location when using Jurassic
I'm using the Jurassic JS engine to run some JS code in a .NET application. Unfortunately I get an exception when running the code which is caused by some undefined value somewhere. But how can I ...