Questions about sweeping barcodes

Source: Internet
Author: User
Questions about sweeping barcodes
HP tables
ID Name (item name) Kucun (stock) Danwei (unit) Danjia (outbound unit price) Tiaoma (barcode)
1 ..... ..... ..... ..... ..... ..... ..... ..... ..... ..... ..... ........... ..... ..... ..... ..... ..... ..... ..... ..... ..... ..... ..... ....... ..... 1234


------to solve the idea----------------------
After sweep, submit to PHP, and then return the content, with JS plus a table on it.
Ajax operations.

The question is how you sweep the program.
------to solve the idea----------------------
Http://www.cnblogs.com/Johnny_Z/archive/2012/06/17/2552597.html
------to solve the idea----------------------
$,post (url,{args:args},function (data) {
alert (data);
})

Getting result sets asynchronously
------to solve the idea----------------------
$.ajax ({
Type: "POST",//Transmit by post
URL: ' f.php ',//destination address.
DataType: "JSON",//Data format: JSON
Data: "dealtype=" + Dealtype + "&uid=" + uid + "&code=" + code,
Data: "&a=" +mobile,
Success:function (JSON) {
if (json.msgid==1) {//successful processing
alert (json.html);
}
else if (json.msgid==2) {//Failed handling
alert (json.html);
}
else{
alert (json.html);
}
}
});

After success, with jquery events, join

var NewRow = $ (""). Append ($ (""). Append (xy_id))
. Append ($ (""). Append (Jifen))
. Append ($ (""). Append (BTN));
return newRow;


Try the
------to solve the idea----------------------






Name Integral Operation



Can you see?
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.