jQWidgets Forums
Forum Replies Created
-
Author
-
Hi,
Reference to jqxBarcode API, can you give me an better example than the one listed on the API page. I am trying a simple example:
<!DOCTYPE html> <html lang="en"> <head> <title id="Description">Barcode Demo.</title> <link rel="stylesheet" href="./includes/jqwidgets/styles/jqx.base.css" type="text/css" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <script type="text/javascript" src="./includes/jquery-3.1.0.min.js"></script> <script type="text/javascript" src="./includes/jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="./includes/jqwidgets/jqxbarcode.js"></script> <script type="text/javascript"> $(document).ready(function () { $('#jqxBarcode').jqxBarcode({ displayLabel: true, type: 'code128a', value: 'Apple TV' }); }); </script> </head> <body> <div id='jqxBarcode'></div> </body> </html>
But I am getting errors. I have download the latest version and get the following are error:
Uncaught SyntaxError: Invalid regular expression: /[^@!(一-é¾ )(ã-ã‚”)(ã‚¡-ヴー)\d0-9A-Z \$\%\*\+\-\.\/\:\=\?\^\{\|\}\~]/: Range out of order in character class (at jqxbarcode.js:15:4310)
Am I missing a library. Because this prevents the jqxbarcode.js from loading and nothing works from there.
Also can you show how to display QR code.
Thanks
October 27, 2020 at 7:55 pm in reply to: DropdownList with checkboxes load checked value at startup DropdownList with checkboxes load checked value at startup #113457Just following up on this:
Is this the correct way of checking a checkbox on loading from the database. By iterating through each of the items, or is there a better way?
I am loading the data from database, passing a field called active. I see the value that I am passing located items[i].[‘originalItem’][‘active’].
If it is 1, then checked, if 0 unchecked.$("#jqxDropDownList").on('bindingComplete', function (event) { var items = $("#jqxDropDownList").jqxDropDownList('getItems'); for(var i=0; i<items.length; i++) { var active = items[i]['originalItem']['active']; var index = items[i]['index']; if (active == 1) { $("#jqxDropDownList").jqxDropDownList('checkIndex', index); } else { $("#jqxDropDownList").jqxDropDownList('uncheckIndex', index); } } });
-
AuthorPosts