AJAX实战Ajax in action(含外文出处)(中文3100字,英文1500字)
作者姓名:Dave Crane , Eric Pascarello , Darren James
文章出处:《AJAX in Action》
摘要:本文简要的介绍了AJAX的 应用,AJAX显得与众不同的地方,以及AJAX与服务器的联系。
关键字:AJAX,服务器,实战
AJAX实战
AJAX的替代方案
市场需要基于Web的应用的表现能力更加丰富、响应更加灵敏,AJAX满足了这种需求,而且不需要在客户端安装任何额外的软件。但是这一领域并非只有一个竞争者,在某些情况下,它甚至并不是最合适的选择。下面我们简要的描述一下主要替代方案。
基于macromedia flash的方案
Macromedia的flash是一种采用压缩的矢量图形格式来播放交互式电影的系统。Flash电影是一种流媒体格式,也就是说可以一边下载一边播放,而不用等媒体的全部字节全部都下载到本地之后再播放。Flash电影是交互式的,它使用actionscript来编程,actionscript是javascript的一种近亲。它也提供了一些对输入表单UI组建的支持。Flash可以应用于从交互游戏到复杂商业应用的用户界面的广泛领域。Flash有非常好的矢量图形支持,而在相对应的AJAX技术领域中,这部分则是完全空白的。
Flash作为一种浏览器插件,已经存在了很长时间。通常来说,插件需要依赖浏览器并不是一个好主意,但是对于flash则不然,主流浏览器的安装包中已经包含了它。而且它也能跨越Windows、Mac OS X以及Linux三大主流的桌面操作系统平台(而且在Linux上的安装文件还要比其他平台小一点。)
Ajax in action
Alternatives to Ajax
Ajax meets a need in the marketplace for richer, more responsive web-based clientsthat don’t need any local installation. It isn’t the only player in that space,though, and in some cases, it isn’t even the most appropriate choice. In the followingsection, we’ll briefly describe the main alternatives.
Macromedia Flash-based solutions
Macromedia’s Flash is a system for playing interactive movies using a compressed vector graphics format. Flash movies can be streamed, that is, played as they are downloaded, allowing users to see the first bits of the movie before the last bits have arrived. Flash movies are interactive and are programmed with Action-Script, a close cousin of JavaScript. Some support for input form widgets is also provided, and Flash can be used for anything from interactive games to complex business UIs. Flash has very good vector graphics support, something entirely absent from the basic Ajax technology stack..
Flash has been around for ages and is accessed by a plug-in. As a general rule,relying on a web browser plug-in is a bad idea, but Flash is the web browser plugin,with the majority of browsers bundling it as a part of the installation. It is available across Windows, Mac OS X, and Linux, although the installation base on Linux is probably smaller than for the other two platforms. |