function value_check(){
var request = createRequest(); // XMLHttpRequest 객체 생성
request.onreadystatechange = function (event) {
if(request.readyState == 4) {
if(request.status == 200 ){
var json = eval('(' + request.responseText + ')');
var product_sn = json['product_serial_no'];
var buy_y = json['buy_year];
var buy_m = json['buy_month];
var buy_d = json['buy_day];
}
}
};
request.open('GET','customer_product_chk.asp?product_idx=' + $("#serial_number").val() ,true);
request.send();
}
// XMLHttpRequest 객체 생성
function createRequest(){
var request;
try {
request = new XMLHttpRequest();
} catch ( exception) {
try{
request = new ActiveXObject('Msxml2.XMLHTTP');
} catch( innerException){
request = new ActiveXObject('Microsoft.XMLHTTP');
}
}
return request;
}
|