[ZXing] 웹페이지에서 Barcode Scanner 사용하기 > 기술자료 | 해피정닷컴

[ZXing] 웹페이지에서 Barcode Scanner 사용하기 > 기술자료

본문 바로가기

사이트 내 전체검색

[ZXing] 웹페이지에서 Barcode Scanner 사용하기 > 기술자료

HTML [ZXing] 웹페이지에서 Barcode Scanner 사용하기

페이지 정보


본문

Using Barcode Scanner on Android to scan from a web page
 
As of Barcode Scanner 3.3, on Android, you can invoke Barcode Scanner from a web page and have the result returned to your site via a callback URL. Simply link to a URL like this: 
 
http://zxing.appspot.com/scan?ret=http://foo.com/products/{CODE}/description&SCAN_FORMATS=UPC_A,EAN_13 
 
(See alternate URL below.) 
 
Really, the parameter's value should be properly URL-escaped. 
 
The "ret" parameter specifies the URL to call back with the scan result. {CODE} may appear anywhere and will be replaced with the scanned barcode contents. "SCAN_FORMATS" may be optionally used to supply a comma-separated list of format names. 
 
iPhone
 
Note that this functionality will be available on the iPhone app "Barcodes" from about January 2012. iOS works differently, and so the URL pattern must instead begin with zxing://scan/. (The trailing slash is needed.) So for example: 
 
zxing://scan/?ret=http://foo.com/products/{CODE}/description&SCAN_FORMATS=UPC_A,EAN_13 
 
Note that this syntax also works on Barcode Scanner 3.8 or later. 
 
Custom search URL
 
Users can specify a custom search URL to invoke when a barcode is scanned. When set under Settings, a Custom Search button will appear. The search URL can contain two placeholders: %s for the barcode content, and %f for the format. For example, http://example.org/?q=%s&f=%f might invoke, on a scan, a URL like http://example.org/?q=10359050900&f=EAN_13 



웹페이지에서 스마트폰의 바코드 스캐너 제어하기

1. 일단 스캐너를 작동시키려면 아래와 같이 링크를 생성합니다.
<a href="http://zxing.appspot.com/scan?ret=http://foo.com/products/{CODE}/description&SCAN_FORMATS=UPC_A,EAN_13">바코드 스캐너 작동하기</a>

2. 바코드 스캐너로 읽은 값을 POST 로 넘기기
...  정리중 ...


관련자료
http://code.google.com/p/zxing/wiki/ScanningFromWebPages  
http://groups.google.com/group/zxing

댓글목록

등록된 댓글이 없습니다.


Total 2,643건 72 페이지
  • RSS
기술자료 목록
1223
ClassicASP   18337  2012-09-07 19:38  
1222
JavaScript   29266  2012-09-07 19:33 ~ 2017-12-01 14:36  
열람
HTML   32504  2012-09-06 01:21  
1220
ClassicASP   24015  2012-08-23 19:16 ~ 2013-12-20 00:00  
1219
SQL   14956  2012-08-23 01:28 ~ 2012-10-29 00:00  
1218
JavaScript   21895  2012-08-23 01:18  
1217
Editor   34104  2012-07-26 23:16  
1216
HTML   21150  2012-07-17 20:51  
1215
영카트   27494  2012-07-16 20:51  
1214
영카트   15996  2012-07-16 20:41  
1213
일반   36942  2012-07-04 12:24  
1212
일반   36523  2012-06-28 00:00  
1211
JavaScript   20938  2012-06-23 23:47  
1210
JavaScript   15681  2012-06-23 23:45  
1209
ClassicASP   14204  2012-06-23 23:01  
1208
MSSQL   43324  2012-06-23 19:33  
1207
HTML   16226  2012-06-23 17:21 ~ 2014-05-22 00:00  
1206
메이크샵   13036  2012-06-21 06:51  
1205
JavaScript   36083  2012-06-21 05:20 ~ 2022-11-18 13:06  
1204
호스팅   18720  2012-06-16 20:00 ~ 2014-08-09 00:00  

검색

해피정닷컴 정보

회사소개 회사연혁 협력사 오시는길 서비스 이용약관 개인정보 처리방침

회사명: 해피정닷컴   대표: 정창용   전화: 070-7600-3500   팩스: 042-670-8272
주소: (34368) 대전시 대덕구 대화로 160 대전산업용재유통단지 1동 222호
개인정보보호책임자: 정창용   사업자번호: 119-05-36414
통신판매업신고: 제2024-대전대덕-0405호 [사업자등록확인]  
Copyright 2001~2025 해피정닷컴. All Rights Reserved.