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); } 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. 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. 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 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
Archived
This topic is now archived and is closed to further replies.