( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
/* ---------------------------- */
/* XMLHTTPRequest Enable */
/* ---------------------------- */
function createObject() {
var request_type;
var browser = navigator.appName;
if(browser == "Microsoft Internet Explorer"){
request_type = new ActiveXObject("Microsoft.XMLHTTP");
}else{
request_type = new XMLHttpRequest();
}
return request_type;
}
var http = createObject();
/* -------------------------- */
/* INSERT */
/* -------------------------- */
/* Required: var nocache is a random number to add to request. This value solve an Internet Explorer cache issue */
var nocache = 0;
function sorteddata() {
// Optional: Show a waiting message in the layer with ID login_response
document.getElementById('insert_response5').innerHTML = "<img src=images/indicator.gif hspace=3 align=texttop>Saving Your Play Order..."
// Required: verify that all fileds is not empty. Use encodeURI() to solve some issues about character encoding.
var sortdata= encodeURI(document.getElementById('sortdata').value);
var mode= encodeURI(document.getElementById('mode').value);
// Set te random number to add to URL request
nocache = Math.random();
// Pass the login variables like URL variable
http.open('get', 'ezikiframework?sortdata='+sortdata+'&mode=sortdata&nocache = '+nocache);
http.onreadystatechange = insertReply5;
http.send(null);
}
function insertReply5() {
if(http.readyState == 4){
var response = http.responseText;
// if eziki success then execute
document.getElementById('insert_response5').innerHTML = '<img src=images/done.png hspace=3 align=texttop><b>Play Order Successfully saved</b>'+response;
}
}