I am trying to use Jwrapper to replace the java applet as chrome is blocking the Java applet. So please suggest the best way to integrate the Jwarpper app in javascript and best way to deploy.
Regards, Mukesh Gupta
I am trying to use Jwrapper to replace the java applet as chrome is blocking the Java applet. So please suggest the best way to integrate the Jwarpper app in javascript and best way to deploy.
Regards, Mukesh Gupta
When you build an app using JWrapper it will produce, amongst other files:
MyAppNameEmbed.js
MyAppNameExample.html
You can copy all the files in the build directory including the ones above and make them available on a web server / website.
You can then take the URL of the JS file above, and use the code in the example HTML file above to point it to your JS file. For example:
<script
id = "jwEmbed"
src = "http://www.example.com/myappname/MyAppNameEmbed.js"
showImage = "yes"
showAppName = "yes"
configuration = "offline*"
type = "text/javascript">
</script>
You can get the exact HTML code to use from your example HTML file in your build folder. This will create a block in your web page which autodetects the end user operating system and provides an appropriate download button which then links to the executable app files you uploaded (along with the JS and HTML files) to your website.