-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
i have a hiden modal with content like this:
<br><img id="bc-A_C01_N03"/><br>
i try to implement JsBarcode like this:
let string = "A_C01_N03"
window.JsBarcode("#bc-" + string, string, {width: 6, height: 50});
and getn error:
Uncaught NoElementException
at new NoElementException (http://avi3.vm/sources/js/adds/plugins/barcode/JsBarcode.all.js?20240711153903:3595:125)
at API.render (http://avi3.vm/sources/js/adds/plugins/barcode/JsBarcode.all.js?20240711153903:289:9)
at JsBarcode (http://avi3.vm/sources/js/adds/plugins/barcode/JsBarcode.all.js?20240711153903:167:55)
at GetBarCodeSample (:233:12)
at NivAdd (:187:12)
at HTMLButtonElement. (:51:20)
at HTMLDocument.dispatch (http://avi3.vm/sources/js/adds/jquery.min.js?20240711153903:5429:27)
at elemData.handle (http://avi3.vm/sources/js/adds/jquery.min.js?20240711153903:5233:28)
I'm thinking that it can't find it because the modal is hidden... or because the modal was added programmatically and it can't find it in the DOM.