Jump to content

Recommended Posts

When I load my page on IE8 on my computer it goes to the catch throwing back the error message javaScript isn't supported. But if I press F5 or the refresh button in IE it starts to work, or if I turn compatability view on, on use IE's web developers tool to set standards to IE8 or IE7. So I have no idea why this error is occuring.

 

Also to point out that it works fine in Safari and Firefox.

 

Coding below;

 

 

    $(document).ready(function()
    {
        try
        {  
            xmlhttp = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP");   
        }
        catch(e) 
        {
            document.getElementById("dealResults").innerHTML = '<p>Your browser does not appear to support javascript.</p>';
        }
        genericGetData("./retrievedata.php","<?php if(!empty($_SERVER['QUERY_STRING'])) {echo $_SERVER['QUERY_STRING'];} ?>", "load");
    });

        function genericGetData(url, args, type) 
        {
            document.getElementById("loadingScreen").style.backgroundImage=((type == "load")? "url('../images/loadingPage.png')" : "url('../images/loading.png')");   
            document.getElementById("loadingScreen").style.display="block";   
            xmlhttp.open('get', url+'?'+args);
            xmlhttp.onreadystatechange = genericHandleResponse;
            xmlhttp.send(null);
        }

Link to comment
https://forums.phpfreaks.com/topic/248006-xmlhtpp-issue-on-ie-7-8/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.