yqh's profile我的地盘,听我的 AND 用户体验PhotosBlogLists Tools Help
    10/31/2006

    AJAX处理流程

    JavaScript程序读取XML并直接在HTML中显示的例子.
    1. //判断不同浏览器,并创建new XMLHttpRequest赋值给http_request
    2. // 既然是非同步的进行方式,在open()以及send()之前,我们"必须"先设定一些事件处理的函数來处理如"已经取得资料"的事件.
    3. http_request.open() 以及 http_request.send()
    4. http_request.status == 200 和 http_request.readyState == 4 ,表示数据处理成功
    5. 执行输出等...document.write

    专业的流程描述

    1. 初始化对象,并发出XMLHttpRequest请求
    2. 指定响应处理函数
    3. 发出HTTP请求
    4. 处理服务器返回的信息

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://coocboy.spaces.live.com/blog/cns!49D4243F12077D34!397.trak
    Weblogs that reference this entry
    • None