title: Classic ASP/VBScript creating a hidden input field
body: <p>I am doing a VBScript loop and I am attempting to concatenate a string which then would be loaded into the value of a hidden input field.</p>
  
  <pre><code>response.write("&lt;input type='hidden' name='strWPL' value='" &amp; strTest &amp; "'/&gt;")
  </code></pre>
  
  <p>I have verified that strTest does have data in it and I have verified that strWPL exists after the server is done processing.</p>
  
  <p>However, when I add this code in:</p>
  
  <pre><code>&lt;script language="javascript" type="text/javascript"&gt;
      $(window).load(function () {
          alert(document.getElementById('strWPL').value);
      });        
  &lt;/script&gt;
  </code></pre>
  
  <p>I get an error stating that strWPL is NULL.  However, when I search for the element in Firebug it is there.</p>
  
  <p>The other nugget of info you might need to know is that this screen is in an iFrame.  I'm not sure if that makes a difference or not.</p>
  
  <p>What am I doing incorrectly?</p>