<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 431,  comments - 344,  trackbacks - 0

    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 周銳 閱讀(470) 評(píng)論(0)  編輯  收藏 所屬分類: AjaxJavaScript
    主站蜘蛛池模板: 亚洲AV无码日韩AV无码导航| 日韩免费高清播放器| 91大神亚洲影视在线| 亚洲第一网站男人都懂| 亚洲免费综合色在线视频| 亚洲精品国产精品乱码不卞| 无码乱肉视频免费大全合集| 国产JIZZ中国JIZZ免费看| 午夜亚洲国产理论片二级港台二级| 日产亚洲一区二区三区| 中文字幕亚洲无线码a| 国产午夜免费秋霞影院| 日韩av无码成人无码免费| 91福利视频免费| 日本免费在线观看| 一区二区三区在线免费| 国产亚洲精品美女久久久久| 在线亚洲高清揄拍自拍一品区| 亚洲视频精品在线| 亚洲AV综合色一区二区三区| 久久亚洲2019中文字幕| 国产乱子影视频上线免费观看| 国外成人免费高清激情视频| 4hu四虎最新免费地址| 最好看的中文字幕2019免费| 久久国产精品一区免费下载| 永久免费av无码入口国语片| 最近国语视频在线观看免费播放| 国产精品免费观看视频| 九一在线完整视频免费观看| 九九免费精品视频在这里 | 99精品热线在线观看免费视频| 国产精品免费一区二区三区| 国产福利电影一区二区三区,免费久久久久久久精 | 78成人精品电影在线播放日韩精品电影一区亚洲 | 夫妻免费无码V看片| 久久久久久国产精品免费免费| 免免费国产AAAAA片| 无码精品A∨在线观看免费| 国产精品美女午夜爽爽爽免费| 国内精品乱码卡1卡2卡3免费|