PageSourceSearch

https://www.albalqatoday.com/includes/js/ajaxer.js?v=0.00037

js albalqatoday.com collected 2026-10-08 06:53:57 UTC 2,701 bytes, 95 lines download raw bytes

1function ajaxCall(action,parameters){
2
3	if (window.XMLHttpRequest){// code for IE7+, Firefox, Chrome, Opera, Safari
4		xmlhttp=new XMLHttpRequest();
5	}else{// code for IE6, IE5
6		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
7	}
8	debug=false;
9	//debug=true;
10	
11	//xmlhttp.overrideMimeType('text/html');
12	xmlhttp.onreadystatechange=function(){
13		if (xmlhttp.readyState==4 && xmlhttp.status==200){
14			var rtrv_data=xmlhttp.responseText;
15			//alert (parameters);
16			if (debug==true){
17				alert(rtrv_data);
18			}
19			//document.getElementById('description').value=rtrv_data;
20			//document.write(rtrv_data);
21			// split to data
22			datas=rtrv_data.split('~^*^~');
23			//////
24			for (i=0 ; i<datas.length-1 ; i++){//
25			//alert (datas[i]);
26				datum=datas[i].split('(._._.)');////
27					var msg='';//
28					var redirect='';//////
29					var command='';///////
30					var object='';////////
31					var vars=new Array();//
32					for (ii=0 ; ii<datum.length-1 ; ii++){
33						jqm=datum[ii].split('"_TMR_"');///////
34						the_var=jqm[0];
35						the_val=trim(jqm[1]);
36						//alert (the_var+'='+the_val);
37						if (the_val!='undefined'){
38							//vars[the_var]=the_val;//
39							eval('var '+trim(the_var)+'=the_val;');
40							//alert(the_var);
41							//eval('vars["'+the_var+'"]=the_val;');
42							
43						}
44						////
45					}//enf for////////
46					
47					if (msg!=''){alert(msg);}////
48					if (redirect!=''){document.location=redirect;}/////
49					switch(command){///////
50						case 'update_poll':
51							document.getElementById('poll_'+poll_id).innerHTML=data;
52							break;
53						case 'set_object_value':
54							document.getElementById(object).value=data;
55							break;
56						case 'set_object_html':
57							document.getElementById(object).innerHTML=data;
58							break;
59						case 'hide_object':
60							document.getElementById(object).display='none';
61							break;
62						case 'show_object':
63							document.getElementById(object).display='';
64							break;
65						case 'hide_center_div':
66							hideCenterDiv();
67							break;
68					}//end switch/////
69			}//end for /////
70			//////
71			//////
72			//////
73			////// 
74		}
75	}
76	
77	parameters='action=' + action + '&' + parameters;
78	
79	var loc = window.location.pathname;
80	var dir = loc.substring(0, loc.lastIndexOf('/'));
81	//console.log(document.location.origin+dir);
82	
83	if (debug==true){
84		xmlhttp.open("POST",document.location.origin+dir+"/ajax_calls.php?debug" ,true);
85	}else{
86		xmlhttp.open("POST",document.location.origin+dir+"/ajax_calls.php" ,true);
87	}
88	
89	xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
90    xmlhttp.setRequestHeader("Content-length", parameters.length);
91    xmlhttp.setRequestHeader("Connection", "close");
92	xmlhttp.send(parameters);
93}
94
95

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.