I'm currently working on a page that utilizes the XMLHttpRequests to avoid reloading the entire page. Once the user logs in, it should display a chart. You can find the main page here: http://pastebin.com/h55Vzuvy And this is the chart we are trying to load: http://pastebin.com/zDZr3bb6
Although the code for loading the chart.php file isn't shown here, it does work correctly and simply calls the xmlhttpGet function from the header of the main page.
The page where the chart should be loaded does execute JavaScript, as confirmed by placing an alert which pops up. However, the graph itself doesn't seem to load. Any thoughts on why this might be happening?
In addition, when attempting to load the chart file, the Chrome JS Debugger throws the following error message. I have verified multiple times that the div name is being passed properly to the variables, and the issue only arises when loading the chart page.
Uncaught TypeError: Cannot set property 'innerHTML' of null
sethtml
callBackFunction
xmlHttpReq.onreadystatechange