![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
document.getElementById("menutable").innerHTML = xmldoc2; ///This is the problem line table width="170" border="1" cellpadding="5" cellspacing="0" bordercolor="#CCCCCC" bgcolor="#CC3333" id = "menutable" |
#3
| |||
| |||
|
|
'document.getElementById(...)' is null or not an object. |
|
function getMenu(){ xmlHTTP2=GetXmlHttpObject(); if (xmlHTTP==null){ alert ("Your browser does not support AJAX!"); return; } url2= "GEPmenu.html"; xmlHTTP2.onreadystatechange=menuPrint; xmlHTTP2.open("GET",url2,true); xmlHTTP2.send(null);} function menuPrint(){ |
#4
| |||
| |||
|
|
'document.getElementById(...)' is null or not an object. Liz, I tried in IE 6 had no problem with getElementById("menutable"), except when I tried to modify innerHTML, but I got a different error than you so it was probably the way I was doing it. function getMenu(){ * * * * xmlHTTP2=GetXmlHttpObject(); * * * * if (xmlHTTP==null){ * * * * * * * * alert ("Your browser does not support AJAX!"); * * * * * * * * return; * * * * } * * * * url2= "GEPmenu.html"; * * * * xmlHTTP2.onreadystatechange=menuPrint; * * * * xmlHTTP2.open("GET",url2,true); * * * * xmlHTTP2.send(null);} function menuPrint(){ Do you realize that you have a function inside a function here? Good luck, Doug |
![]() |
| Thread Tools | |
| Display Modes | |
| |