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.
function loadContent(stringRequest)
{
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
this.xmlhttp = new XMLHttpRequest();
}
else
{// code for IE6, IE5
try
{
this.xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e1)
{
try
{// older version of Msxml
this.xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e2)
{
this.xmlhttp = null;
} } }
xmlhttp.onreadystatechange = function()
{
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
{// Display response when success.
var fileContent = xmlhttp.responseText;
var jsObject= fileContent.split(',');
}
}
this.xmlhttp.open("GET", stringRequest, true);
this.xmlhttp.send();
// I can do this shorter but anyway I do this for Debug Purpose
var data = this.xmlhttp.responseText.split("\n"); // Will separate each line into an array
var line = data.join('<br />\n');
$('#lb').html(line); // and put it in listbox