ajax post um einen Mehrwert in der KLASSISCHEN asp

Ich versuche, den Wert der gebuchten textbox mit jquery AJAX:

Dies ist mein 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;
});
 });

- Und dies ist die test.asp Seite:

<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
dim vwPW

  vwPW = request.QueryString("vwPW")

  response.write "returned " & vwPW
%>

Und meine form ist:

<form id="form1" method="post" action="">
          <table width="100" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><input name="vwPW" id="vwPW" type="password" class="textBox" maxlength="10"  /></td>
                <td><button class="GreyB" id="submitButton" name="submitButton"><span style="color:#000">Log in</span></button></td>
              </tr>
            </table>
</form>

Alles was ich bekomme ist "umgestimmt" und nichts danach. Was würde ich tun falsch?

David

InformationsquelleAutor StealthRT | 2012-03-02

Schreibe einen Kommentar