——一些AJAX的使用例子如下:
实时的表单数据验证:象ID号、序列号、邮政编码、优惠卷号码这样的表单数据可以在用户提交整个表单之前就得到验证!
自动补全:一些特定表单数据比如email、姓名、城市名可以根据用户的类型自动填写。
细节操作:基于客户端事件、客户可以不刷新页面就可以查看某一种产品的细节信息。
智能客户端接口控制:诸如树、菜单、工具条都可以在不刷新页面的情况下随时提供服务。
刷新实时数据:页面可以从服务端筛选动态数据并显示、诸如:比分、股票报价、天气预报等。
This list is not all-inclusive, but it shows that AJAX interactions allow web applications to do much more than they have done in the past. Although many of these benefits are noteworthy, this approach has some drawbacks as well:
Complexity: Server-side developers will need to understand that presentation logic will be required in the HTML client pages as well as in the server-side logic to generate the XML content needed by the client HTML pages. HTML page developers must have JavaScript technology skills. Creating AJAX-enabled applications will become easier as new frameworks are created and existing frameworks evolve to support the interaction model.










