posts - 38, comments - 9, trackbacks - 0, articles - 1

[导入]How AjaxAnywhere works?

Posted on 2005-11-24 15:30 大阿福 阅读(223) 评论(0)  编辑  收藏
 

The idea is simple:

  1. Mark "reload-capable" zones of a web page with AjaxAnywhere custom tags.
  2. Instead of submitting a form in traditional way, do it by AjaxAnywhere javascript API.
  3. During request processing on the server-side, determine the zones to refresh. (You can implement this logic either on the client-side via JavaScript or on the server-side, via AjaxAnywhere API.)
  4. On the server-side AjaxAnywhere will generate an XML containing only the "updated" HTML.
  5. On the client-side AjaxAnywhere javascript will receive the XML, parse it and update the selected zones.

文章来源:http://spaces.msn.com/members/toafu/Blog/cns!1plxDUDpUlZ9XwwHH1v6x0Hw!318.entry

只有注册用户登录后才能发表评论。


网站导航: