我正在嘗試使用jquery ajax json獲取我從一個頁面發送到另一個頁面的值。ajax後得到CLASSIC asp中的值html
這是我的代碼:
function checkTheVin()
{
$.ajax({
type: "POST",
url: "checkVin.asp",
data: 'theVIN=' + $("#vwVin").val(),
cache: false,
dataType: "html",
beforeSend: function() {$.blockUI({ message: '<img src="img/ajax-loader.gif" />' });},
complete: function(){$.unblockUI();},
success: function(responseText){
if (responseText.indexOf("GOOD") > -1)
{
$("#theContent").html(responseText.replace("GOOD",""));
}else{
//alert(data);
}
},
error: function(responseText){alert('err: ' + responseText);},
});
}
但是我從來沒有得到一個resonse回來。它是空的。
這就是我如何使用傳統的ASP得到它:
dim vwVin
vwVin = request.QueryString("theVIN")
我在做什麼不正確?
大衛