JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Web Design 版  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to postflat modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 Re:javascript可以對request和response操作麽 [Re:wjp1226]
garbage

以死美工自居



發文: 65
積分: 0
於 2003-12-31 02:49 user profilesend a private message to usersend email to garbagereply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
意思是如同下面這樣嗎?(For IE only.)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<html>
  <head>
    <title>Test Post</title>
    <script type="text/javascript">
      function send(strPost){
        var request = new ActiveXObject("Msxml2.XMLHTTP.4.0");
        request.open("POST", "http://163.13.202.178/garbage_test/test.php", false);
        request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
        request.send(strPost);
        alert(request.responseText);
      }
    </script>
  </head>
  <body>
    <button onclick="send('ID=123&NAME=abc');">submit</button>
  </body>
</html>


garbage edited on 2003-12-31 02:54
reply to postreply to post
【小卷如是( lefthand.24cc.com ):以設計師自許、以死美工自居】
話題樹型展開
人氣 標題 作者 字數 發文時間
8259 javascript可以對request和response操作麽 wjp1226 46 2003-12-22 09:12
7933 Re:javascript可以對request和response操作麽 snpshu 32 2003-12-22 09:53
7947 Re:javascript可以對request和response操作麽 garbage 969 2003-12-31 02:49
7984 Re:javascript可以對request和response操作麽 haloha 252 2004-01-16 02:12
8068 Re:javascript可以對request和response操作麽 garbage 1192 2004-01-16 09:20
8165 Re:javascript可以對request和response操作麽 zanta 972 2004-04-14 17:54
7930 Re:javascript可以對request和response操作麽 AdaHsu 375 2004-06-08 10:39
» JWorld@TW »  Web Design 版

reply to postflat modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8