How and where to import external javascript files into a widget
Hi,
I am at the moment implementing a QR Code scanning widget with the help of the github project HTML5 QR Code reader.
I am using the Eclipse Extension plugin and the Eclipse Extension sdk
How and where should external javascript and css files be referenced, I know that they should be kept in the ui folder, but I do not know where to reference them, the code i have found it this (append the script in the head):
$("head").append("<script type="text/javascript" src="../Common/Extensions/QRCodeExtension/ui/qrcode_widget/scanner2-core.js"></script>)
Kindly
Oskar Berntorp


