четвъртък, 16 януари 2014 г.

QR Code JavaScript

In this blog entry, we look into the ShieldUI QR Code for ASP.NET. The QR Code component allows encoding of alphanumeric data into a two-dimensional QR Code.
In order to take advantage of the functionalities offered by our QR, you will need to:
1. Include references to all required scripts.
2. Add the control declaration along with the desired properties.

This is demonstrated in the code snippet below:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html>
<head>
<title>Shield Chart</title>
<meta charset="utf-8" />
<script src="js/jquery-1.10.2.min.js" type="text/javascript">//</script>
<script src="js/shieldui-all.min.js" type="text/javascript">//</script>
</head>
<body>
 
<div id="container" style="width:200px; height:100px;"></div>
 
<script type="text/javascript">
$(document).ready(function () {
    $(function() {  
        $("#container").shieldQRcode({
            mode: "Byte",
            size: 200,
        errorLevel: "Q",
            value: "ShieldUI QR Code"
        }); 
  });
});
</script>
 
</body>
</html>
This approach is demonstrated in the following example.

Няма коментари:

Публикуване на коментар