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----------------------
Can you see?