title: ajax post getting value in CLASSIC asp
body: <p>I am trying to get the value of the posted textbox using jquery AJAX:</p>
  
  <p>This is my code:</p>
  
  <pre><code>$(document).ready(function(){
  $('#submitButton').click(function() {
      $.ajax({
              type: "POST",
              url: "test.asp",
              data:  $("#form1").serialize(),
              cache: false,
              dataType: "html",
              success: function(responseText){
                  alert(responseText);
              },
              error: function(resposeText){
                  alert(resposeText);
              },
          });
  
      return false;
  });
   });
  </code></pre>
  
  <p>And this is the <strong>test.asp</strong> page:</p>
  
  <pre><code>&lt;%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%&gt;
  &lt;%
  dim vwPW
  
    vwPW = request.QueryString("vwPW")
  
    response.write "returned " &amp; vwPW
  %&gt;
  </code></pre>
  
  <p>And my form is:</p>
  
  <pre><code>&lt;form id="form1" method="post" action=""&gt;
            &lt;table width="100" border="0" cellspacing="0" cellpadding="0"&gt;
                &lt;tr&gt;
                  &lt;td&gt;&lt;input name="vwPW" id="vwPW" type="password" class="textBox" maxlength="10"  /&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;button class="GreyB" id="submitButton" name="submitButton"&gt;&lt;span style="color:#000"&gt;Log in&lt;/span&gt;&lt;/button&gt;&lt;/td&gt;
                &lt;/tr&gt;
              &lt;/table&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>All i get is "retuned" and nothing after that. What would i be doing incorrect?</p>
  
  <p>David</p>