mga istoryan mangau ta kog tabanng...
uhmm.. naa koy 3 ka textbox.. nya ako gi combine ilang mga value to generate a barcode value..
below is the function..
PHP Code:
function getBarCode(ItemCode,VendCode,Cat){
var Item = ItemCode;
var Mcode = VendCode;
var Category = Cat;
var barcodeval = Item+Mcode+Category;
if (Item == ''){
alert('Input A Itemcode Code');
return false;
}else if(Mcode == ''){
alert('Input A Merchant');
return false;
} else {
swDisplayOpen = true;
winID = window.open ('','selectWin2','scrollbars=yes,resizable=yes,width=220,height=200');
winID.document.write( "<HTML><HEAD><TITLE>Please wait....</TITLE></HEAD><BODY><I>Please wait....</I></BODY></HTML>" );
winID.document.location = 'barcode.php?barcode='+ barcodeval +'&width=200&height=100';
}
return false;
}
ok nani xa..
my question is.. unsaon nko para makuha ang value sa
var barcodeval nya mabutang sa textbox na
barcode?
thanks in advance..
![Thumbs Up](images/smilies/thumbsup.gif)