Dethman Posted October 27, 2009 Share Posted October 27, 2009 here is the function it deals with I will mark line 55 for you function do_option() { var xmlHttp = getXMLHttp(); var id = document.getElementById("id").value; xmlHttp.onreadystatechange = function() { if(xmlHttp.readyState == 4) { handle_option(xmlHttp.responseText); } } var option = document.getElementById("options").value; xmlHttp.open("GET", "option_js.php?option=" + option + "", true); xmlHttp.send(null); } function handle_option(type){ // LINE 55 document.getElementById('abottomPart').innerHTML = type; } If anyone could explain to me why this error is appearing it would be great, Thank you for your views Quote Link to comment Share on other sites More sharing options...
Calver Posted October 27, 2009 Share Posted October 27, 2009 Are you triggering the Ajax function before the document has been fully rendered, to include the 'abottomPart' element? 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.