Change parent page from within an iframe
<p>I'm trying to use an iframe to process a log in, and change the parent page depending on the output. I've traced the javascript to here:</p>

<pre><code>function results(status)
{
   req = new XMLHttpRequest();
   req.open('GET', '../design/loginbox.php', false);
   req.send(null);

   alert(req.responseText);

   top.document.getElementByID['loginbar'].innerHTML = req.responseText;
}
</code></pre>

<p>I know this isn't cross compatible or anything, but at the moment I'm just testing. The alert shows the correct output, however, the parent page never changes. Can anyone see where I am going wrong?</p>

<p>Thanks, Piepieonline</p>
