//request("msg","<?php echo DIR_MODS_SN;?>/stokiest/simpan_keranjang.php?prdId="+id+"&prodharga="+hg+"&jmlproduct="+jml+"&prodname="+nm,false);
// Saya mau memasukannya Kedalam session tapi gagal
function returnSponsor(id,nm,hg,stok,bv,r){
var wo=window.opener;
var jml=window.prompt("Masukkan jumlah barang :");
if(jml!=null && parseInt(jml)>0){
wo.eval("document.formDaftar.idbarang"+r).value=id;
wo.eval("document.formDaftar.barang_name"+r).value=nm;
wo.eval("document.formDaftar.barang_harga"+r).value=hg;
wo.eval("document.formDaftar.barang_jumlah"+r).value=jml;
request("msg","<?php echo DIR_MODS_SN;?>/stokiest/simpan_keranjang.php?prdId="+id+"&prodharga="+hg+"&jmlproduct="+jml+"&prodname="+nm,false);
// window.close();
}
else
{
alert('Masukkan jumlah barang dengan benar.');
}
}
unction request(divId,url,reLoad)
{
if(jsCache[url]&& !reLoad){
document.getElementById(divId).innerHTML = jsCache[url];
parseJs(document.getElementById(divId));
evaluateCss(document.getElementById(divId))
return;
}
var indexContent = dynamicContent.length;
dynamicContent[indexContent] = new kuraudo();
dynamicContent[indexContent].method="POST";
dynamicContent[indexContent].requestFile = url;
dynamicContent[indexContent].objID = divId;
dynamicContent[indexContent].onCompletion = function(){
showContent(divId,indexContent,url);// jika onCompletion true maka fungsi showContent dilaksanakan
if(reLoad){
document.location.reload();
}
}
dynamicContent[indexContent].runAJAX();// menjalankan perintah request
}