/[RFID]/www/rfid.html
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /www/rfid.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 49 - (hide annotations)
Wed Jun 24 09:29:20 2009 UTC (14 years, 10 months ago) by dpavlin
File MIME type: text/html
File size: 820 byte(s)
re-scan tags every 200ms

1 dpavlin 47 <html>
2     <head>
3     <title>3M RFID</title>
4     <script type="text/javascript" src="jquery-1.3.2.min.js"></script>
5     <script type="text/javascript">
6    
7     function scan_tags() {
8     console.info('scan_tags');
9     $.getJSON("http://localhost:9000/scan?callback=?",
10     function(data) {
11     var html = 'No tags in range';
12     if ( data.tags ) {
13     html = '<ul class="tags">';
14     $.each(data.tags, function(i,tag) {
15     console.debug( i, tag );
16     html += '<li>' + tag.sid + ' <tt>' + tag.content + '</tt>';
17     });
18     html += '</ul>';
19     }
20     $('#tags').html( html );
21 dpavlin 49 window.setTimeout(function(){
22     scan_tags();
23     },200); // re-scan every 200ms
24 dpavlin 47 });
25     }
26    
27     $(document).ready(function() {
28     scan_tags();
29     });
30     </script>
31     </head>
32     <body>
33    
34     <h1>RFID tags in range</h1>
35    
36     <div id="tags">
37     RFID reader not found or driver program not started.
38     </div>
39    
40     </body>
41     </html>

  ViewVC Help
Powered by ViewVC 1.1.26