There is currently 1 post.
Font size: Small - 100% (Default)  Content converter: No conversion
 
Clicks Replies
745 0
ajax还是出错了
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 1 Posted at: 10/19/10 12:34

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script type="text/javascript" src="../../Scripts/Base.js"></script>
<script src="../../Scripts/prototype.js"></script>
<script>
function s(){
 var val=t(form1.textfield.value);
 var myAjax=new Ajax.Request('back.php',{method:'post',parameters:'s='+val,onComplete:d});
}
function d(q){
 alert(q.responseText);
}
function t(s){
 return encodeURI(encodeURI(s));
}
</script>
</head>

<body>
<form id="form1" name="form1" method="post" action="">
  <label>
  <input name="textfield" type="text" id="textfield" value="3炯就囧氺++8·27&as00115=772" size="50" />
  </label>
  <label>
  <input type="button" name="button" id="button" value="发送请求" onclick="s()" />
  </label>
</form>
</body>
</html>

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.
(Shortcut key: Ctrl+Enter)
Post Information
Clicks: 745 Replies: 0
Author: 巨大八爪鱼
Last reply: 巨大八爪鱼
Last reply time: 10/19/10 12:34
Bar Hot Posts
Bar Good Posts
Announcements