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

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

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

    躺在沙灘上的小豬

    快樂的每一天

    Moo.ajax: 1.3kb for all your asynchronous needs

    http://ajaxian.com/archives/mooajax-13kb-for-all-your-asynchronous-needs
    Valerio Proietti, the creator of Moo.fx, has now created a micro library for Ajax, moo.ajax.

    I noticed many of you requested if it would have been possible to use the full prototype, instead of the lite one I provided with the full download of moofx, to use its ajax capabilities along with the effects. Sure you can, but wouldn’t it be cooler if there was a more lightweigt one?

    Just to continue my mission in small javascripting, I have arranged this moo.ajax, in just 1.3kb of uncompressed sweetness.

    read more for instructions, or download the script. As always, any comments/corrections/suggestions are highly appreciated.

    moo.ajax is a very simple ajax class, to be used with prototype.lite from moo.fx. It’s roughly based on the prototype one, so their usage are very similar.

    The request
    to make any request just call

    new ajax(url, options);


    The options
    method: choose either post or get. The default is post.
    posyBody postBody: if you choose post as method, you can write parameters here.
    onComplete: a function that will be fired when your request is complete. The request object will be passed as a parameter of the function.
    update: an dom element or an element’s id. This element will be filled with the request’s responsetext.
    An example
    This will call my script.php via post, setting as parameter sleep=3. When the request is complete I want an alert with the response text, and I want an element to be updated with the responsetext as well.

    new ajax ('sleep.php', {postBody: 'sleep=3', update: $('myelementid'), onComplete: myFunction});
    function myFunction(request){
      alert(request.responseText);
    }

    posted on 2006-01-20 09:31 martin xus 閱讀(397) 評論(0)  編輯  收藏

    主站蜘蛛池模板: 亚洲AV成人无码久久WWW| 成人性生免费视频| 亚洲不卡AV影片在线播放| 亚洲日本VA午夜在线影院| 亚洲日韩精品国产一区二区三区| 99久热只有精品视频免费看| 亚洲久本草在线中文字幕| av在线亚洲欧洲日产一区二区| 亚洲GV天堂GV无码男同| 成人在线免费观看| 亚洲aⅴ天堂av天堂无码麻豆| 国产精品色午夜视频免费看| 国产大陆亚洲精品国产| 亚洲精品无码AV中文字幕电影网站| 免费在线观看自拍性爱视频| 性xxxx视频免费播放直播| 亚洲AV无码久久| 亚洲人av高清无码| 国产又粗又长又硬免费视频 | 亚洲激情中文字幕| 777成影片免费观看| 美女被免费视频网站a国产| 日日噜噜噜噜夜夜爽亚洲精品| a级毛片毛片免费观看久潮| 亚洲国产精品第一区二区| 国产一卡2卡3卡4卡无卡免费视频| 亚洲人成网站看在线播放| 国产在线观看免费视频软件| 亚洲黄色在线视频| 天天操夜夜操免费视频| rh男男车车的车车免费网站| 亚洲精品天天影视综合网| 日本高清色本免费现在观看| 人人鲁免费播放视频人人香蕉| 久久亚洲精品无码| 午夜免费不卡毛片完整版| yy一级毛片免费视频| 亚洲天堂电影在线观看| 男人的天堂亚洲一区二区三区| eeuss草民免费| 亚洲乱码在线播放|