나는 JQuery와 AJAX를 사용하여 게시 된 텍스트 상자의 값을 얻기 위해 노력하고 있어요 : 이것은 내 코드아약스 후 점점 값은
입니다 :
$(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;
});
});
그리고 이것은 test.asp라는입니다 페이지 :
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
dim vwPW
vwPW = request.QueryString("vwPW")
response.write "returned " & vwPW
%>
그리고 내 양식은 다음과 같습니다
<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>
내가 얻은 것은 모두 "다시 돌아온"것이고 이후에는 아무것도 얻지 못합니다. 나는 무엇을 잘못하고있을 것인가?
데이비드 양식은 그래서 당신이 아니라 Request.Form
를 통해 Request.QueryString
을 통해 전송 변수에 액세스 할 수 없습니다 게시됩니다
감사합니다. 나는 그것이 조금은 알았습니다. – StealthRT