富客户端程序RIA使Web表示层的技术向前迈进了一大步,开创了图形化编程的新一代先河。在它的带动下,许多优秀的RIA开发方案相继问世。这些开发方案各有个秋,但它们都或多或少地从传统桌面程序开发中汲取了营养。随着前端技术的不断进步,以及JavaScript引擎的速度改善,基于Ajax方案的Ext
JS也在不断进步。Ext JS及与之相关的GXT、Ext SHARP等开发工具的推出,使快速开发,特别是即将发布的Ext3.0及基于可视化快速开发工具Designer又向前迈进一大步。
Rich Client Program RIA means Web Presentation Layer has made a great step forward
to create a new generation of imaging edition. Under this, a lot of excellent RIA
development program will be designed gradually. Although each program has its own
feature, it is basically developed from the traditional desktop program. As the
front-end technique developing and JavaScript engine improving, Ext Js based on
Ajax program is also changing. Ext JS and the relative GXT and Ext SHARP development
tool are launched, which makes it quick development, especially the coming out Ext3.0
and Designer, the visual quick development tool, is being upgraded.
本书以学习Ext JS的开发人员为基本读者,介绍了Ext 2.2的基本使用方法,以利用HTML/CSS/Java Script进行前端设计的方法和技巧,本书的内容主要是:
This book is for Ext JS developer, introducing the basic usage of Ext 2.2, and the
front-end design method and technique with HTML/CSS/Java Script. The book is mainly
about:
- 第1章 Ext前言 Chapter 1 Ext Introduction
-
Flex/OpenLaszlo、Silverlight、Java Fx,看看其他的优秀RIA方案,和Ajax-based比较一下。本章内容包括RIA的概念由来、各厂商的RIA方案、Ajax方案的分析和“围绕Ext的IDE简介”。
Flex/OpenLaszlo, Silverlight and Java Fx, compared Ajax-based with the other excellent
RIA programs, this Chapter is included the origin of RIA concept, RIA program of
all manufacturer, the analysis of Ajax program and the brief introduction of IDE
based on Ext.
- 第2章 Ext起步 Chapter 2 Getting start Ext
-
从感性的认识开始接触Ext,开始正式进入Ext的世界。本章内容包括Ext自带例子的简介说明以及使用Ext前的一些注意问题等方面内容,力求让新用户有一个顺利的开始过程。
From theory to usage Ext, begin to enter into Ext. This Chapter is included Ext
sample briefly specification and the notes before using Ext for new users to start
Ext.
- 第3章 Ext基础 Chapter 3 The Basic Ext
-
从最基础的元素说起,为大家展现Ext的底层架构是如何分布的。包括Ext.Element对象的用法、CSS选择器的使用和一些实用的DOM方法。
From the most basic element, show how the distribution of Ext bottom layer architecture,
with usage of Ext. Element object and CSS selector, and some practical usages of
DOM.
- 第4章 事件机制 Chapter 4 Event mechanism
-
本章中,我们从浏览器事件演变的历史以及最初级的实现机制开始说起,希望作为后来Ext高级事件内容的铺垫导引,逐级展开。
In this Chapter, we start from the evolution history of browser event and the junior
achievement mechanism to introduce Ext senior event gradually.
- 第5章 创建用户界面 Chapter 5 Create User Interface
-
Flex/OpenLaszlo、Silverlight、Java Fx,看看其他的优秀RIA方案,和Ajax-based比较一下。本章内容包括RIA的概念由来、各厂商的RIA方案、Ajax方案的分析和“围绕Ext的IDE简介”。
Flex/OpenLaszlo, Silverlight and Java Fx, compared Ajax-based with the other excellent
RIA programs, this Chapter is included the origin of RIA concept, RIA program of
all manufacturer, the analysis of Ajax program and the brief introduction of IDE
based on Ext.
- 第6章 数据驱动 Chapter 6 Data drive
-
本章介绍Ext中数据的提交与响应方式,然后对目前最流行的数据格式XML与JSON进行深入地介绍与比较,接着继续深入探讨Ext数据驱动的核心——Ext的容器类、数据存储基本单元、数据存储类型、数据的读取方式、数据代理等。最后,我们结合目前最流行的Ajax远程框架DWR,讲解DWR如何在Ext中使用,以及如何创建基于DWR的Ext数据读取器和数据代理。
This Chapter is to introduce Ext data submission and response; to introduce the
updated data format XML and Json with their comparison; discuss the core of Ext
data drive – Ext container type, data storage base unit, data storage type, data
read mode and data agent. We combine DWR, the Seam Remoting Framework (Ajax), to
explain how to use DWR in Ext and to creat Ext data reader and data agent based
on DWR.
- 第7章 Ext高级应用 Chapter 7 Ext Advanced application
-
在本章中,我们探讨了“闭包”乃函数式语言这一明显特性作为切入点,深入JavaScript原理机制,并为Ext的面向对象机制作一次解剖。另外除了语言的层面,我们还向大家介绍如何在单页面的基础上提供的非跳转或ifrmae的GUI设计,尝试在Ext实现“单一页面”的程序设计。
In this Chapter, we begin the discussion with the feature that closure is one of
the function languages to specify JavaScript theory mechanism, and the explanation
of Ext object-oriented mechanism. Besides this, there is introduction how to provide
GUI design of non-skip or iframe based on single page, and try to achieve single
page program design in Ext.
- 第8章 Ext扩展与插件 Chapter 8 Ext extention and plugins
-
本章主要内容是为大家介绍如何开发Ext扩展和插件,以及介绍一些在Ext例子中没有提及而开发中比较常用的扩展和插件。
This Chapter is to introduce how to develop Ext extend and plug in, and those in
frequent use during the development but seldom mention in Ext samples.
- 第9章 优化Ext Chapter 9 Ext Optimization
-
Ext-all.js文件大小接近600KB,和样式、图片等文件加起来更是占用可观的带宽。因此各种优化手段去参与实施就很有必要了。本章我们主要介绍JS Builder,YUI
compressor,JSA等优化工具,还有利用服务端gZIP压缩网络IO的功能,减少网络负荷。
Since Ext-all.js file is almost 600KB, with style and picture files up to more favorable
bandwidth, all means of optimization to participate in execution are needed. This
Chapter we introduce JS Builder, YUI compressor, and JSA optimization tool, and
use service end gZIP to pack internet IO function to share internet load.
- 第10章 制定Ext外观 Chapter 10 Establish Ext layout
-
本章包括以下的内容:修改Ext的外观,Ext资源文件的本地化,Ext资源文件的国际化。
This Chapter is included: Ext layout amendment, Ext source file localization, and
Ext source file internationalization.
- 第11章 JavaScript与HTML的调试 Chapter 11 Debug with JavaScript and HTML
-
本章的目的就是要介绍此类工具的使用,包括在Firefox和Internet Explorer下的浏览器,并同时介绍如何在页面中查找HTML元素、观察HTTP消息、结构等的实用技巧。
The Chapter is aimed to introduce this kind of tool usage, including both of Firefox
and Internet Explorer browsers, and practical technique to search HTML element in
page, observe HTTP message and distribution.
- 第12章 简单的新闻管理系统 Chapter 12 Simple news management system
-
这是一个C#+SQL Server Express+Ext的新闻管理系统,充分演示了Ext怎么作为一个UI框架结合到现实的开发平台中。
This is C#+SQL Server Express+Ext, news management system, to display how to put
Ext, as UI frame, into development.
本书的前6章属于Ext JS的基础知识,对于初学者非常重要,后面名章节是针对Ajax开发中的需要进行的专项讲解,读者可以根据自己的需要和使用水平选择阅读。
The first 6 chapters are about Ext JS basement knowledge, which is so important
to the beginners; the last chapters are specified on Ajax explanations. Reader could
select chapters to read according to their needs.
本书由张鑫、黄灯桥(博客:blog.csdn.net/tianxiaode)、杨彦强执笔。在编写过程中,InfoQ中文站(infoq.com/cn)总编辑霍泰稳先生,jQuery中文社区站长杨乐先生和JSVM.org始创人万常华先生对本书的编写提出了许多建设性的意见和肯定的反馈,给予作者极大的帮助。清华大学出版社大成编辑统筹下的工作小组对本书的编排和润色工作付出了辛勤的劳动,在此一一向他们表示衷心的感谢,没有他们给予的指导,是很难完成此书的写作。
This book is written by Frank Cheung, Dengqiao Hwang (blog: blog.csdn.net/tianxiaode) and Yanqiang Yeung. During writing, chef editor of InfoQ Chinese Website (infoq.com/cn), Mr Taiwen Huo, jQuery Chinese community agent, Mr Le Yeung and JSVM.org founder, Mr. Changhua Wang gave so much constructive advice and approval feedback, which help the authors so much. The group of Da Cheng edit under Tsinghua University Press contributes themselves to edit. To all of these person, we are so appreciated, without their suggestions and help, the book could not be finished.
本书编写过程中,作者参考了extjs.com的部份教程及ajaxjs.com《Ext中文文档》等的资源。在此特向这些资源的作者表示感谢。信息总在万变之中,我们笔下对Ext的班门弄斧不足以窥见Ext之全貌,因此希望得到读者的批评指正,才能反映出我们是与Ajax/Ext爱好者、或者开发社区产生共鸣的。
During editing this book, authors made reference to the material of some extjs.com and ajaxjs.com, Ext Chinese file. We are appreciated to these authors. Information keeps changing, what we write down is part of Ext, not all, so we are so appreciated to get the rectification from the readers, which can communicate with Ajax/Ext enthusiasts or relative communities.