gish Posted October 22, 2007 Share Posted October 22, 2007 hi everyone I have been doing ajax for a year now and with howto and examples I have put this script together and it has been running fine never an issue. but I download opera the other day and it will not work so is it written wrong. Can anyone see an issue. It will work in ie, firefox. function checkResult1() { if (request.readyState ==4) { var randomDiv = document.getElementById("randompic"); randomDiv.innerHTML = request.responseText; } } function getNewXMLHttpRequest() { var findbrowser; try { findbrowser = new ActiveXObject('Microsoft.XMLHTTP'); } catch(a) { try { findbrowser = new XMLHttpRequest(); } catch (a) { findbrowser = false; } } return findbrowser; } function getanewpicture() { request = new getNewXMLHttpRequest(); var url ="randompic.php"; request.open("GET", url, true); request.onreadystatechange = checkResult1; request.send(false); } Anyone got any ideas. gish Quote Link to comment Share on other sites More sharing options...
gish Posted October 22, 2007 Author Share Posted October 22, 2007 The ajax is called when an animation reaches screen height Quote Link to comment Share on other sites More sharing options...
gish Posted October 23, 2007 Author Share Posted October 23, 2007 it was bad function call above 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.