当前页面: 开发资料首页 → 业界新闻 → AjaxAnywhere 1.0 tag library released
摘要: AjaxAnywhere, 是能够把任何一套现存的JSP组件转换成AJAX感知组件而不需要复杂的JavaScript编码.它利用标签把Web页面简单地划分成几个区域,然后使用AjaxAnywhere来刷新那些需要被更新地区域.
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.