Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: javascript blob

$
0
0
OK, it looks like you're trying to pass input and person.name to a script function or expression.

If that's correct, there are many ways to do that. Several were already demonstrated (see the myFunction samples above).

Another possibility, if all the arguments are strings, is to insert the arguments into the script code itself:
engine.Evaluate(string.Format("myFunction('{0}', '{1}')", input, person.name));
Good luck!

Viewing all articles
Browse latest Browse all 2297

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>