Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
/*@cc_on @if (@_win32 && @_jscript_version >= 5) if (!window.XMLHttpRequest)
function XMLHttpRequest() { return new ActiveXObject('Microsoft.XMLHTTP') }
@end @*/
function subRequestReturn(sURL, sMethod, sVars) {
try {
var xmlhttp = new XMLHttpRequest;
} catch (e) {
return false;
}
sMethod = sMethod.toUpperCase();
try {
if (sMethod == 'GET') {
if (typeof sVars != 'undefined' && sVars)
sURL += '?' + sVars;
sVars = '';
}
xmlhttp.open(sMethod, sURL, false);
if (sMethod == 'POST') {
xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
//xmlhttp.setRequestHeader('Method', 'POST '+sURL+' HTTP/1.1');
}
xmlhttp.send(sVars);
return xmlhttp.responseText;
} catch (e) {
return false;
}
}
var meineVar = subRequestReturn('index.php?modus=ajax', 'GET');
/*@cc_on @if (@_win32 && @_jscript_version >= 5) if (!window.XMLHttpRequest)
function XMLHttpRequest() { return new ActiveXObject('Microsoft.XMLHTTP') }
@end @*/