xjasonx Posted March 27, 2009 Share Posted March 27, 2009 Why doesn't this work? It looks the same as everyone elses. I've been debugging it and moving code around forever. Nothing seems to work. When I click a link, nothing shows up, no errors either. function openPage(objid,serverPage) { var obj = document.getElementById(objid); xmlHttp.open("GET",serverPage); xmlHttp.onreadystatechange = function() { if(xmlHttp.readyState==4 && xmlHttp.status==200) { obj.innerHtml = xmlHttp.responseText; } } xmlHttp.send(null); } Quote Link to comment https://forums.phpfreaks.com/topic/151447-please-help-open-page-not-working/ Share on other sites More sharing options...
dpacmittal Posted March 28, 2009 Share Posted March 28, 2009 innerHtml should be innerHTML. Quote Link to comment https://forums.phpfreaks.com/topic/151447-please-help-open-page-not-working/#findComment-795695 Share on other sites More sharing options...
xjasonx Posted March 28, 2009 Author Share Posted March 28, 2009 Lol, that fixed it. I feel stupid. Thanks for the help. Quote Link to comment https://forums.phpfreaks.com/topic/151447-please-help-open-page-not-working/#findComment-795912 Share on other sites More sharing options...
dpacmittal Posted March 29, 2009 Share Posted March 29, 2009 Quote Link to comment https://forums.phpfreaks.com/topic/151447-please-help-open-page-not-working/#findComment-796105 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.