Hi I am loading a page using jquery .load() method.
the page is loaded perfectly on the firefox but it isn't load when I am opening the page on the google chrome.
Do you guys have some solution.
<script>
var xmlHttp;
function initAjax() {
try {
xmlHttp = new XMLHttpRequest(); // Firefox, Opera 8.0+, Safari
} catch(e) {
try {
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); // Internet Explorer
} catch(e) {
try {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch(e) {
alert("No AJAX!?");
return false;
}
}
}
xmlHttp.onreadystatechange = function() {
if(xmlHttp.readyState == 4) {
document.getElementById('main_container').innerHTML = xmlHttp.responseText;
}
}
}
function updateAjax(mypage) {
var t=mypage;
//alert(t);
if(t=="")
{
//alert("Welldone");
}
else
{
xmlHttp.open("GET", t, true);
xmlHttp.send(null);
}
}
window.onload = function() {
initAjax();
}
</script>
<div id="main_container" style="position: relative;">
</div>
<script src="../js/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/docs.min.js"></script>
<script src="../js/jRating.jquery.js"></script>
<script type="text/javascript">
$("#main_container").load("home.html");
</script>