http post 方法

          function costPayCheck() {
                   var name = "test"
                   var PARAMS2 = 'EeM1whUd4q4%3d&money=i6hN5C6DIN4%3d&checkcode=nhIAV2UrfsWnq1I38RKp5%2b46w4bxah62p6tSN%2fESqefuOsOG8WoetiUOtz2bp40id93kxCmKe%2bY%2f%2foU%2b8UmIPnvhxn9jGcsgHGKUTJep4N4q3lr1fo%2bZEWZJXRQhhfJ4RNQDb8RgTAU%3d&feeetype=Q1dQXRPDVOc%3d&old_pay_no=String+%e5%bc%95%e7%94%a8%e6%b2%a1%e6%9c%89%e8%ae%be%e7%bd%ae%e4%b8%ba+String+%e7%9a%84%e5%ae%9e%e4%be%8b%e3%80%82%0d%0a%e5%8f%82%e6%95%b0%e5%90%8d%3a+s&old_money=String+%e5%bc%95%e7%94%a8%e6%b2%a1%e6%9c%89%e8%ae%be%e7%bd%ae%e4%b8%ba+String+%e7%9a%84%e5%ae%9e%e4%be%8b%e3%80%82%0d%0a%e5%8f%82%e6%95%b0%e5%90%8d%3a+s';
                  
                   var tempForm = document.createElement("form"); 
                   tempForm.id="tempForm1"; 
                   tempForm.method="post"; 
                   tempForm.action="         tempForm.target=name; 
                   
                    var hideInput = document.createElement("input"); 
                    hideInput.type="hidden"; 
                   hideInput.name= "pay_no"
                   hideInput.value= PARAMS2;
                    tempForm.appendChild(hideInput);  
                    tempForm.attachEvent("onsubmit",function(){ openWindow(name); });
                   document.body.appendChild(tempForm); 
                  
                   tempForm.fireEvent("onsubmit");
                   tempForm.submit();
                  document.body.removeChild(tempForm);
             }
              
                function openWindow(name) 
              { 
                   window.open('about:blank',name,'height=400, width=400, top=0, left=0, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes,location=yes, status=yes');  
                }

          posted on 2013-04-09 13:13 youngturk 閱讀(297) 評論(0)  編輯  收藏 所屬分類: JavaScriptHTMLJS , DHTML

          <2013年4月>
          31123456
          78910111213
          14151617181920
          21222324252627
          2829301234
          567891011

          導航

          統計

          公告

          this year :
          1 jQuery
          2 freemarker
          3 框架結構
          4 口語英語

          常用鏈接

          留言簿(6)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          相冊

          EJB學習

          Flex學習

          learn English

          oracle

          spring MVC web service

          SQL

          Struts

          生活保健

          解析文件

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 潞西市| 涿州市| 黄大仙区| 瑞金市| 通道| 贵港市| 晴隆县| 广西| 雅江县| 高淳县| 郓城县| 广南县| 新余市| 陆河县| 望谟县| 定西市| 林周县| 筠连县| 安乡县| 赣榆县| 明星| 通州区| 新绛县| 福安市| 高尔夫| 天祝| 宣威市| 靖西县| 镶黄旗| 宁明县| 绍兴县| 伊金霍洛旗| 那坡县| 镇江市| 铜梁县| 肥乡县| 铜川市| 涿州市| 金山区| 松江区| 东山县|