Reputation: 343
I'm currently developing a C#/xaml app using the WindowsRT/Metro framework
Is there any way in Windows Store Apps to load and run javascript from a string? I'm looking to use Javascript in a similar way Game Engines would invoke LUA/Python scripts to perform dynamic functionality without recompiling the engine. It seems IOS can achieve this using JavascriptCore
We're currently using javascript on other platforms to perform some simple logic at various stages of a workflow (e.g. User configured behaviour in a form or wizard such as populating fields based on already entered data). Ideally at certain points in the workflow I would like to be able to invoke a javascript function which had access to a simple API already defined in the application.
Is this currently possible on Windows Store apps?
The app will not be deployed on the normal Windows Store but rather used only in enterprise type deployments
Upvotes: 0
Views: 549
Reputation: 4899
load the html from the local file using webview.navigatetostring then you can inject the javascript and from with in the app you can use invoke script to call a function
go through the link below Invoke script
but i really would like to know how you would like to distribute the app for enterprise purpose. I dont think that might be possible. Please explain.
Upvotes: 1