GB_001 Posted March 30, 2008 Share Posted March 30, 2008 I keep getting an Out of error message in IE with ajax. Is there anyway to fix it? Thankyou. -GB. function ajaxFunction(){ var ajaxRequest; try{ ajaxRequest = new XMLHttpRequest(); } catch (e){ try{ ajaxRequest = new ActiveXObject('Msxml2.XMLHTTP'); } catch (e) { try{ ajaxRequest = new ActiveXObject('Microsoft.XMLHTTP'); } catch (e){ alert('Your browser broke!'); return false; } } } ajaxRequest.onreadystatechange = function(){ if(ajaxRequest.readyState == 4){ var ajaxDisplay = document.getElementById('mypopup2'); ajaxDisplay.innerHTML = ajaxRequest.responseText; } } var url = 'Reqaccept.php'; ajaxRequest.open('GET', url, true); ajaxRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); ajaxRequest.send(null); ajaxFunction(); } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.