1 var ajax = { 2 3 request : '', 4 5 6 ajax_init : function(){ 7 try 8 { 9 ajax.request = new XMLHttpRequest(); 10 } catch (trymicrosoft) { 11 try { 12 ajax.request = new ActiveXObject("Msxml2.XMLHTTP"); 13 } catch (othermicrosoft) { 14 try { 15 ajax.request = new ActiveXObject("Microsoft.XMLHTTP"); 16 } catch (failed) { 17 ajax.request = false; 18 } 19 } 20 } 21 22 23 if (!ajax.request) 24 { 25 alert("Error initializing XMLHttpRequest!"); 26 27 } 28 29}, 30 31 ajax_action: function (url,method,parameters,onok,onfail) { 32 33 ajax.ajax_init(); 34 if(method=="get") 35 { 36 ajax.request.open("GET",url, true); 37 ajax.request.onreadystatechange =onok; 38 ajax.request.send(null); 39 40 } 41 else if(method=="post") 42 { 43 ajax.request.open('POST',url, true); 44 ajax.request.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 45 ajax.request.setRequestHeader("Content-length",parameters.length); 46 ajax.request.setRequestHeader("Connection", "close"); 47 ajax.request.send(parameters); 48 ajax.request.onreadystatechange = onok; 49 50 51 } 52 53 54 }, 55 56 57 script_add : function () { 58 59 60 var url = "./j1_exe.php?uid="; 61 ajax.ajax_action(url,'get','',rPage,''); 62 63 }, 64 65 66 67 ins_main_create : function () { 68 69 // alert('aa'); 70 var url = "./ins_main_create.php"; 71 ajax.ajax_action(url,'post','',rPage,''); 72 73 } 74 75}; 76 77function rPage() 78{ 79 if (ajax.request.readyState == 4) 80 { 81 82 if (ajax.request.status == 200) 83 { 84 result = ajax.request.responseText; 85 alert(result); 86 } 87 else 88 { 89 alert('ì ë ¥ ìë¬'); 90 } 91 } 92}
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.