AjaxAnywhere 并不需要改变基本得代码. 相对来说, 比较容易实现. 并且并没有把你的程序和AJAX绑定到一起. 即使是一些不支持AJAX的浏览器,也还可以正常地工作.
官方网站提到:
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.
有兴趣的, 可以上官方网站看看详细资料,并且有一些demo可以看到哦..
官方站点: http://ajaxanywhere.sourceforge.net/index.html
标签: