Jump to content

[SOLVED] Error: document.getElementById("abottomPart") is null line 55


Dethman

Recommended Posts

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

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.