Quantcast
Channel: ClearScript
Browsing all 2297 articles
Browse latest View live

Edited Issue: Issue concatenating java string and c sharp string [55]

This is in the basic java engine (not v8)I have some basic code here (in javascript):```var accountstr = host.newVar(CLRString);if (!downloadInfo.TryGetValue("Account", accountstr.out)){ accountstr =...

View Article



New Post: You guys should totally make this work with NuGet

+1 for deploying via nuget

View Article

New Post: Dynamic properties added to DynamicObject are undefined

This is awesome. Works perfectly, but you should considder updating the documentation with it. Great project!

View Article

New Post: javascript blob

What method would be best to get a javascript blob object into a .net byte array?

View Article

New Post: javascript blob

Hi Pretzelfisch, The Blob object is part of the Web API. It isn't part of the JavaScript standard, and ClearScript doesn't provide it. Did you mean ArrayBuffer by any chance? Thanks!

View Article


New Post: javascript blob

I think I can get the blob to a ArrayBuffer, will that map to a byte array?

View Article

Created Unassigned: Calling a function with a parameter in JScriptEngine [56]

I initialize my engine with the following lines:``` Dim engine As JScriptEngine engine = New JScriptEngine(WindowsScriptEngineFlags.EnableDebugging) engine.AddHostType("Console", GetType(Console))```I...

View Article

Commented Unassigned: Calling a function with a parameter in JScriptEngine [56]

I initialize my engine with the following lines:``` Dim engine As JScriptEngine engine = New JScriptEngine(WindowsScriptEngineFlags.EnableDebugging) engine.AddHostType("Console", GetType(Console))```I...

View Article


New Post: javascript blob

Hi again, Generally speaking, ClearScript doesn't convert script objects to host objects automatically. Instead, it aims to allow hosts to manipulate script objects directly. Here's a sample class that...

View Article


Commented Unassigned: Calling a function with a parameter in JScriptEngine [56]

I initialize my engine with the following lines:``` Dim engine As JScriptEngine engine = New JScriptEngine(WindowsScriptEngineFlags.EnableDebugging) engine.AddHostType("Console", GetType(Console))```I...

View Article

New Post: javascript blob

Hi, How to evaluate an expression and validate it using the ClearScript.

View Article

New Post: javascript blob

Hello! You can call ScriptEngine.Evaluate() to evaluate a script code expression. What kind of validation are you looking for? Cheers!

View Article

New Post: Problem using V8RuntimeConstraints

I'm running into a problem trying to use V8RuntimeConstraints when creating a V8ScriptEngine, and I'm not doing anything weird so I'm guessing there must be something wrong with my project. I'm posting...

View Article


New Post: Problem using V8RuntimeConstraints

Greetings! We ran a quick test using your V8RuntimeConstraints configuration. It turns out that those numbers are too tight for V8 to get off the ground, much less run any script code. It exceeds those...

View Article

New Post: javascript blob

Hi Expression whether true or false ?? by using if condition. like a javascript as below.<html><body><a id="demo"></a><script> var a=1; var result; if(1==1) { result=true;...

View Article


New Post: javascript blob

Sure, here's a simple C# example:using (var engine = new V8ScriptEngine()) { if (Convert.ToBoolean(engine.Evaluate("Math.PI > 3.0"))) { Console.WriteLine("Pi is greater than 3!"); } }As you can see,...

View Article

Updated Wiki: Home

Description ClearScript is a library that makes it easy to add scripting to your .NET applications. It currently supports JavaScript (via V8 and JScript) and VBScript.Features Simple usage; create a...

View Article


New Post: javascript blob

Hi, Thank you. Can you give some example to access the function in CleaeScript as in javaScript like function myfunction( ){ }

View Article

New Post: javascript blob

Suppose you've defined a JavaScript function like this: engine.Execute("function myFunction(a, b, c) { return a * b + c; }");Here are a few ways to execute it from the host and print out the return...

View Article

New Post: Problem using V8RuntimeConstraints

Good to know, thanks for the update.

View Article
Browsing all 2297 articles
Browse latest View live




Latest Images