This is a migrated thread and some comments may be shown as answers.

Barcoder plugin initialisation

4 Answers 35 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
pete
Top achievements
Rank 1
pete asked on 20 Mar 2013, 05:24 PM
I'm combining the barcode example with the camera example and I'm not getting the barcode to scan.

Do I need to initialise the barcode plugin?

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 21 Mar 2013, 10:11 AM
Hi Pete,

The sample-barcode-scanner requires the Barcode scanner plug-in (i.e. barcodescanner,js file) to be present in your application and referenced in your HTML 5 page:

<script type="text/javascript" charset="utf-8" src="Plugins/BarcodeScanner/barcodescanner.js"></script>

Kind regards,
Steve
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
0
pete
Top achievements
Rank 1
answered on 21 Mar 2013, 12:18 PM
Hi

I had included that.

I think my problem may have been

destinationType = navigator.camera.DestinationType;

in the onDeviceReady.

I have it working now. :)
0
Tong
Top achievements
Rank 1
answered on 06 Jun 2013, 10:22 AM
is it the barcodescanner.js able to open the camera when called scan function?
0
Steve
Telerik team
answered on 06 Jun 2013, 10:49 AM
Hi Tong,

Yes, you can run the sample-barcode-scanner demo to observe how it works.

Regards,
Steve
Telerik

Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
Tags
General Discussion
Asked by
pete
Top achievements
Rank 1
Answers by
Steve
Telerik team
pete
Top achievements
Rank 1
Tong
Top achievements
Rank 1
Share this question
or