1function createXMLHttpRequest(obj, n){ 2 var opname = ""; 3 var opvalue = ""; 4 if (typeof n !== "undefined") { 5 opname = n; 6 if(opname != false){ 7 opvalue = $("#p_" + opname).val(); 8 } 9 } 10 11 $.post("/ajax/request_ajax.php", 12 { name: obj.name, value: obj.value, opn: opname , opv: opvalue}, 13 function(message) { 14 if (message.length > 0) { 15 // error 16 $("#" + obj.name).removeClass("c-form-fin"); 17 $("#" + obj.name).addClass("c-form-error"); 18 $("#" + obj.name + "_message").html(message); 19 } else { 20 // safe 21 $("#" + obj.name).removeClass("c-form-error"); 22 $("#" + obj.name).addClass("c-form-fin"); 23 $("#" + obj.name + "_message").html(''); 24 } 25 }); 26} 27 28function createRadioXMLHttpRequest(obj, n){ 29 var opname = ""; 30 var opvalue = ""; 31 if (typeof n !== "undefined") { 32 opname = n; 33 if(opname != false){ 34 $('input[name="p_' + opname + '"]:checked').each(function() { 35 opvalue = []; 36 opvalue.push($(this).val()); 37 }); 38 } 39 } 40 41 $.post("/ajax/request_ajax.php", 42 { name: obj.name, value: obj.value, opn: opname , opv: opvalue}, 43 function(message) { 44 if (message.length > 0) { 45 // error 46 $("#" + obj.name).removeClass("c-form-fin"); 47 $("#" + obj.name).addClass("c-form-error"); 48 $("#" + obj.name + "_message").html(message); 49 } else { 50 // safe 51 $("#" + obj.name).removeClass("c-form-error"); 52 $("#" + obj.name).addClass("c-form-fin"); 53 $("#" + obj.name + "_message").html(''); 54 } 55 }); 56} 57 58function createCheckBoxXMLHttpRequest(obj, n){ 59 var opname = ""; 60 var opvalue = ""; 61 if (typeof n !== "undefined") { 62 opname = n; 63 if(opname != false){ 64 $('input[name="p_' + opname + '[]"]:checked').each(function() { 65 opvalue = []; 66 opvalue.push($(this).val()); 67 }); 68 } 69 } 70 71 $.post("/ajax/request_ajax.php", 72 { name: obj.name, value: obj.value, opn: opname , opv: opvalue}, 73 function(message) { 74 if (message.length > 0) { 75 // error 76 $("#" + obj.name).removeClass("c-form-fin"); 77 $("#" + obj.name).addClass("c-form-error"); 78 $("#" + obj.name + "_message").html(message); 79 } else { 80 // safe 81 $("#" + obj.name).removeClass("c-form-error"); 82 $("#" + obj.name).addClass("c-form-fin"); 83 $("#" + obj.name + "_message").html(''); 84 } 85 }); 86}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.