|
function CreateHTTP() {
var xmlhttp=false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp = false;
}
}
@end @*/
if (!xmlhttp && typeof XMLHttpRequest!='undefined')
xmlhttp = new XMLHttpRequest();
return xmlhttp;
}
function HTTPGet(uri, callback_function, callback_parameter) {
var xmlhttp = CreateHTTP();
var bAsync = true;
if (!callback_function)
bAsync = false;
xmlhttp.open('GET', uri, bAsync);
xmlhttp.send(null);
if (bAsync) {
if (callback_function)
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4)
callback_function(xmlhttp.responseText, xmlhttp, callback_parameter)
}
return true;
} else
return xmlhttp.responseText;
}
function HTTPinto(html, http, node) {
node.innerHTML = html;
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Hazem Torab, founder & CEO at Enozom Software, a fast growing software company in Alexandria. Hazem has more than 6 years of experience in management and team leading, and 10+ years of professional experience in the software development field.
Hazem also is a co-founder and chairman of Ayaady for Investment and Agriculture, a crowd funded company and the first Egyptian online fresh meat shop directly from the farm to the consumers.
Before founding Enozom, Hazem was a co-founder & CEO of IRange Software. He also worked at ITWorx and Raya Software after his graduation in 2004 from Alexandria University, Faculty of Engineering, Computer and Systems Department.
https://www.enozom.com