var _update_mem_data ='_proses_update_mem_data';
function Update_Data_Mem() {
if ( sendReq.readyState == 4 || sendReq.readyState == 0 ) {
sendReq.open("POST", "/barang/mem/update_mem_data.php", true );
sendReq.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded" );
sendReq.onreadystatechange=function() {
if ( sendReq.readyState == 4 && sendReq.status == 200 ) {
alert( sendReq.responseText );
}
}
var param = 'txtmem_id=' + document.getElementById( 'txtmem_id' ).value;
param += '&txtmem_name=' + document.getElementById( 'txtmem_name' ).value;
param += '&m_Tag=' + document.getElementById( 'm_Tag' ).value;
param += '&txDate_Reg=' + document.getElementById( 'txDate_Reg' ).value;
param += '&txtRemaks=' + document.getElementById( 'txtRemaks' ).value;
sendReq.send( param );
document.getElementById( _update_mem_data ).innerHTML = '<img src="/barang/skin/loader.gif">';
setTimeout(1900)
document.getElementById( 'txtmem_id' ).value='';
document.getElementById( 'txtmem_name' ).value='';
document.getElementById( 'm_Tag' ).value='';
document.getElementById( 'txDate_Reg' ).value;
document.getElementById( 'txtRemaks' ).value='';
}
}
var _update_mem_data ='_proses_update_mem_data';
function Update_Data_Mem() {
document.getElementById( _update_mem_data ).innerHTML = '<img src="/barang/skin/loader.gif">';
if ( sendReq.readyState == 4 || sendReq.readyState == 0 ) {
sendReq.open("POST", "/barang/mem/update_mem_data.php", true );
sendReq.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded" );
sendReq.onreadystatechange=function() {
if ( sendReq.readyState == 4 && sendReq.status == 200 ) {
document.getElementById( 'txtmem_id' ).value='';
document.getElementById( 'txtmem_name' ).value='';
document.getElementById( 'm_Tag' ).value='';
document.getElementById( 'txDate_Reg' ).value;
document.getElementById( 'txtRemaks' ).value='';
alert( sendReq.responseText );
document.getElementById( _update_mem_data ).innerHTML = '';
}
}
var param = 'txtmem_id=' + document.getElementById( 'txtmem_id' ).value;
param += '&txtmem_name=' + document.getElementById( 'txtmem_name' ).value;
param += '&m_Tag=' + document.getElementById( 'm_Tag' ).value;
param += '&txDate_Reg=' + document.getElementById( 'txDate_Reg' ).value;
param += '&txtRemaks=' + document.getElementById( 'txtRemaks' ).value;
sendReq.send( param );
}
}