New Post: Invalid constructor invocation
After we provided a suitable Console object, this code worked perfectly with ClearScript 5.3.11. Are you using an older version?
View ArticleNew Post: Invalid constructor invocation
i use the latest version and the Console object is a firebug-console implementation
View ArticleNew Post: function: dynamicly parameters
All JavaScript functions can take any number of arguments. Please see here.
View ArticleNew Post: Invalid constructor invocation
Can you provide more information? Which script engine are you using? How are you exposing XmlHttpRequest to the script engine? How are you loading and executing the JavaScript code?
View ArticleNew Post: Invalid constructor invocation
i use JScriptEngine se.AddHostObject("XmlHttpRequest", new XmlHttpRequest()); i execute with: js.Evaluate(Properties.Resources.Run); i also tried with execute, but same error
View ArticleNew Post: Invalid constructor invocation
Hi furesoft, You're exposing an object - an instance of the XmlHttpRequest class. For the new operator to work, you need to expose the class itself: se.AddHostType("XmlHttpRequest",...
View ArticleNew Post: Serializing the entire engine
So I know you can't do what the subject suggests. What I'd like is the next best thing. I'm trying to save as much of the running engine instance as possible so that I can re-instantiate it later and...
View ArticleNew Post: Serializing the entire engine
Hello! 1) How do I get access to all root objects from inside the CLR? You can do something like this:foreach (var name in engine.Script.GetDynamicMemberNames()) { var obj = engine.Script[name]; //...
View ArticleNew Post: Calling a generic C# method from javascript
i know i would know too how can i use
View ArticleNew Post: Calling a generic C# method from javascript
One way could be to add a host type and pass it to the generic method ?
View ArticleNew Post: using typescript
Hello furesoft, The TypeScript compiler generates JavaScript code, which ClearScript should be able to execute. If you'd like use ClearScript to run the TypeScript compiler itself, take a look here....
View ArticleNew Post: Calling a generic C# method from javascript
Hello maicalal, One way could be to add a host type and pass it to the generic method ? That's correct. Many generic methods don't require explicit type arguments because their type arguments can be...
View ArticleNew Post: Using ClearScript. WebApplication problem
This issue seems a bit of an epic. I've read through and tried a lot of things here, but I'm still unable to run my website.Installed via NuGet package (bear with me, I don't think that's the issue --...
View ArticleNew Post: Using ClearScript. WebApplication problem
Hi willeyams, you can use the AssemblyResolve event to point your application to the correct binaries. I've deployed successfully my ASP.NET application to Azure with this technique. First, you...
View ArticleNew Post: Using ClearScript. WebApplication problem
Hello andrea_schirru! Thank you very much for posting that sample, and for your kind words! Cheers!
View Article