I'm struggling to figure out how to get result of calling javascript in dotnet #442
Tom Laird-McConnell (tomlm)
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I have a javascript library which I am successfully importing.
I call that library and I'm able to successfully get the result output to the console in javascript using console.log.
What I'm not seeing is how to get a value back from calling nodeEngine.RunScript().
I essentially want to do:
But I don't see any example of that. I see that I could export a C# interface into the javascript etc...but it feels super complicated.
Is there a simple way to just call into Javascript and get a result back as a string?
Or is there a way of doing this:
and then get the value of x?
All reactions