Hi all,
The sample code below runs perfectly as a .html script but does not run as a .fwx script in foxweb. It is supposed to generate a QR barcode on the webpage. It is a QR barcode resource trial from www.barcoderesource.com
The html file, barcode.js, qrcode.min.js and app.js javascript files are all located in the foxweb program path.
Can anyone figure out why it is not running in foxweb?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>JavaScript QR Code Barcode</title>
<link rel="stylesheet" href="app.css" type="text/css" />
<script src="barcode.js"></script>
<script src="qrcode.min.js"></script>
<style type="text/css" media="screen,print">
@font-face {
font-family: CCodeQR;
src: url("fonts/CCodeQR_Trial.eot");
src: local("CCodeQR_Trial"), url("fonts/CCodeQR_Trial.otf") format("opentype"), url("fonts/CCodeQR_Trial.woff") format("woff");
}
#qrBarcodeFonts {
font-weight: normal;
font-style: normal;
line-height: normal;
font-family: 'CCodeQR', sans-serif;
font-size: 12px;
}
</style>
</head>
<body>
<h3>JavaScript QR Code Barcode (Canvas)</h3>
<canvas id="barcodeCanvas" width=300 height=300>0987654321</canvas>
<br /><br />
<h3>JavaScript QR Code Barcode (Font)</h3>
<div id="qrBarcodeFonts">0987654321</div>
<script src="app.js"></script>
</body>
</html>