What causes "Bad variable type." in JavaScript?
<p>I have a value in an array which displays the value "Bad variable type." and the type "Variant" when viewed in IE debugger. What could cause this error?</p>

<p>The value should be a string and the only operation on that array item in the JavaScript is to copy it to the .firstChild.nodeValue of a page element.</p>

<p>simplified code example:</p>

<pre><code>response = erHttp.responseText;
temp = response.split('^^');        
document.getElementById("page_element").firstChild.nodeValue = temp[0];
</code></pre>
