Jump to content

Please Help! Open Page not working


xjasonx

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.