posts - 431,  comments - 344,  trackbacks - 0
          公告
           Don't Repeat Yourself
          座右銘:you can lose your money, you can spent all of it, and if you work hard you get it all back. But if you waste your time, you're never gonna get it back.
          公告本博客在此聲明部分文章為轉摘,只做資料收集使用。


          微信: szhourui
          QQ:109450684
          Email
          lsi.zhourui@gmail.com
          <2008年3月>
          2425262728291
          2345678
          9101112131415
          16171819202122
          23242526272829
          303112345

          留言簿(15)

          隨筆分類(1019)

          文章分類(3)

          文章檔案(21)

          收藏夾

          Link

          好友博客

          最新隨筆

          搜索

          •  

          積分與排名

          • 積分 - 862900
          • 排名 - 44

          最新評論

          閱讀排行榜

          Syntax
            new Ajax.Updater(container, url, options);
          // make a HTTP request to the specified URL and update the 'container' element.

          Note: to only update a div on success, you may optionally substitute a property list for a simply element id (ie {success:’div_name’} instead of ‘div_name’)

          Options

          Option Default value Description
          asynchronous true Type of request
          evalScripts false When set as “true”, scripts in requested url are evaluated
          method ‘post’ Lets you decide whether to use Get or Post for the request to the server
          contentType ‘application/x-www-form-urlencoded’ Allows you to set the content-type sent to the server
          encoding ‘UTF-8’ Allows you to determine the encoding type information given to the server
          parameters ’’ Allows you to attach parameters to your AJAX request. Most common: parameters:Form.serialize(this)
          postBody ’’ Specify data to post. Something like: postBody:’thisvar=true&thatvar=Howdy’ How does this differ from parameters?
          username ’’
          password ’’
          requestHeaders ’’ Allows you to override the headers, see the Prototype AJAX options for details
          onComplete ’’ Function to call on completion of request
          onSuccess ’’ Function to call on successful completion of request
          onFailure ’’ Function to call on failed request
          onException ’’ Function to call on failed request (e.g. attempted cross-site request)
          on + Status Code ’’ on404 etc. raise an event when given status code is encountered.
          insertion None Instead of inserting the response in the existing content (possibly overwriting it) you can pass a valid Insertion object, such as Insertion.Top, Insertion.Bottom, Insertion.Before or Insertion.After.

          Hint: If you have set evalScripts:true the script you call (the url parameter) must return a header of ‘Content-Type: text/javascript’ else the browser will not execute it.

          posted on 2008-03-18 17:49 周銳 閱讀(469) 評論(0)  編輯  收藏 所屬分類: AjaxJavaScript
          主站蜘蛛池模板: 泊头市| 建湖县| 微博| 漳浦县| 神池县| 高雄市| 台江县| 苏尼特右旗| 宝山区| 彭山县| 凤阳县| 阜宁县| 新乡县| 永州市| 安多县| 青铜峡市| 河津市| 唐海县| 和田县| 喜德县| 东光县| 墨脱县| 西华县| 南乐县| 乌拉特前旗| 延寿县| 永胜县| 澄迈县| 光泽县| 礼泉县| 沁源县| 海南省| 葫芦岛市| 大渡口区| 福清市| 恩施市| 陇南市| 邢台县| 长子县| 泽州县| 二连浩特市|