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

          好友博客

          最新隨筆

          搜索

          •  

          積分與排名

          • 積分 - 865031
          • 排名 - 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 周銳 閱讀(471) 評論(0)  編輯  收藏 所屬分類: AjaxJavaScript
          主站蜘蛛池模板: 卢龙县| 公安县| 阿克| 峡江县| 海盐县| 崇礼县| 舞阳县| 桦川县| 尉氏县| 大渡口区| 丁青县| 博湖县| 成安县| 浪卡子县| 安吉县| 承德市| 元阳县| 永福县| 荣成市| 乌兰浩特市| 德化县| 辉南县| 永仁县| 延津县| 门源| 桃源县| 彩票| 北碚区| 旅游| 庐江县| 宕昌县| 巢湖市| 双桥区| 攀枝花市| 平陆县| 青阳县| 光泽县| 岳阳市| 天柱县| 博罗县| 永修县|