日期:2014-05-16  浏览次数:21056 次

ajax中get传参数限制问题
我用get传参数提交form时,似乎超过一定长度就报错。网上查了一下,需要修改为POST方式传递。不知道怎么改。谢谢各位指教!这个是我的get代码
var text=escape(document.form2.joinman.value+"-+-"+getRowData());
 
  alert(unescape(text));
showsending();
$.get("penxunajaxdj.asp",{action: "peixundj",text: text},function(data){closesending();alert(unescape(data));window.location.href=window.location.href;});
 }
下面是penxunajaxdj.asp中的接受代码
Dim Action
Action=Request("action")
Select Case Action
 Case "peixundj" peixundj
End Select

Sub peixundj()
 Dim Text:Text=UnEscape(Request("text"))
后面是写入数据库的!
希望帮忙看看怎么修改为POST方式!不胜感谢!

------解决方案--------------------
$.post
------解决方案--------------------
$.post("penxu....
其他都不变