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

New Post: Calling a JS Function from a script that has been exectued

$
0
0
Hi dru_satori,

scriptEngine.Invoke("spanishHello") should work; another possibility is scriptEngine.Script.spanishHello().

Are you sure you're using the same engine instance that executed the script? Is it possible that you're deleting the functions somehow? What exactly does the exception say? Could you provide a minimal code sample that reproduces the issue?

Thanks!

Viewing all articles
Browse latest Browse all 2297

Trending Articles



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