Enjoy Life

A Ryan Gene Blog!

Saturday, September 30, 2006

[Life]Ryan on CZTV

posted by Ryan Gene at 2:07 PM 4 comments

[Life]有一句话

“我觉得做一件事,经历就是一种成功,你去闯一闯,不行你还可以掉头;但是你如果不做,就像晚上想想千条路,早上起来走原路,一样的道理。”
--马云

posted by Ryan Gene at 9:25 AM 0 comments

Tuesday, September 26, 2006

AJAX框架汇总 (转)


基于浏览器的应用框架一般分为两种:

  • Aplication frameworks:提供了浏览器功能,但其最著名的还是在于通过窗口生成组件建立桌面GUI。
  • Infrastructural frameworks:提供基本的框架功能和轻便式浏览器端操作,让开发者去创建具体应用,主要功能包括:
    • 基于XMLHttpRequest组件的浏览器交互功能
    • XML解析和操作功能
    • 根据XMLHttpRequest的返回信息进行相应的DOM操作
    • 一些特殊情况下,和其他的浏览器端技术如Flash(或Java Applets)等集合到一起应用

基于服务器端的应用框架通常以下面两种方式工作(尽管它们根据不同的语言进行了分类)

  • HTML/JS Generation(HTML/JS生成):通过服务器端生成HTML和JS代码在传递给浏览器端进行直接运行
  • 远程交互:JavaScript调用服务器端函数(例如调用Java函数)并返回给JavaScript的回调句柄,或者请求服务器端数据信息,例如Session信息,数据库查询等。

目录

1.1 Bindows
1.2 BackBase
1.3 DOJO
1.4 Open Rico
1.5 qooxdoo
1.6 Tibet
1.7 AJFORM
2.1 AjaxCaller
2.2 Flash JavaScript Integration Kit
2.3 Google AJAXSLT
2.4 HTMLHttpRequest
2.5 Interactive Website Framework
2.6 LibXMLHttpRequest
2.7 MAJAX
2.8 RSLite
2.9 Sack
2.10 Sarissa
2.11 XHConn
3.1 Cross-Platform Asynchronous INterface Toolkit
3.2 SAJAX
3.3 Javascipt Object Notation (JSON) and JSON-RPC
3.4 Javascript Remote Scripting (JSRS)
3.5 Bitkraft for ASP.NET
4.1 WebORB for Java
4.2 Echo 2
4.3 Direct Web Remoting (DWR)
4.4 SWATO
4.5 AJAX JSP Tag Library
4.6 AJAX Java Server Faces Framework
5.1 CL-Ajax
6.1 WebORB for .NET
6.2 Ajax.NET
6.3 ComfortASP.NET
6.4 AjaxAspects
7.1 AjaxAC
7.2 JPSpan
7.3 XAJAX
8.1 Ruby On Rails

1. Pure Javascript: Application Frameworks

1.1 Bindows (成立于2003年)

Bindows是一个通过DHTML、JavaScript、CSS和HTML等技术强劲联合起来的一套完整的Windows桌面式的WEB应用程序解决方案。Bindows无需下载安装客户端支撑组件(如Java、ActiveX或Flash),仅需一个浏览器。纯OO的理念体现在Bindows任何地方,Bindows或许是笔者见过的最完整最强大的AJAX应用程序平台。
Bindows是商业程序的,使用了来自于MB的技术(总部位于GA USA,主要开发中心在瑞典,成立于2002年)。

Bindows框架提供的功能和特性有:

  • 基于面相对象技术的类和API
  • 一套完整的Windows桌面系统,支持各种特性窗口模式,包括菜单、表单、表格、滑动条、测量仪器窗口和其他一些Windows窗口特性支持。
  • 是开发zero-footprint(零空间占用)SOA客户端应用程序首选工具包
  • 本机的XML,SOAP和XML-RPC支持
  • 单用户到企业级开发的支持
  • 内建的完美的AJAX支持

Bindows开发环境:

  • 支持企业级规模的项目开发
  • 跨浏览器、跨OS平台的支持
  • 不受服务器结构限制
  • 良好的与新的、现有的资源互操作性
  • 统一的开发接口

1.2 BackBase (成立于2003年)

BackBase是一个完整的浏览器端框架,提供了丰富的浏览器操作功能,以及对.NET和JAVA平台的集成。
商业化产品,来自于Backbase B.V(总部在Amsterdam,成立于2003年)。

1.3 DOJO (开发中,成立于2004年9月)

DOJO提供完整的轻量级窗口组件和浏览器-服务器消息映射支持

  • 提供创建自定义Javascript窗口组件的框架支持
  • 预制的丰富的窗口类型库
  • B/S消息映射支持——XMLHttpRequest和其他机制
  • 支持浏览器中的URL操纵功能
  • 开源许可(Academic Free License 2.1),由JotSpotAlex Russell所领导。

1.4 Open Rico (开发中;成立于2005年5月;基于早期的一个proprietary 框架)

Open Rico是一个支持Ajax架构和用户交互的多用途框架。

  • 一个XMLHttpRequest response能被一个或多个的DOM对象,或者Javascript对象调用。
  • 支持拖拽操作
  • 支持基于AJAX的动画模式,如缩放和变换等
  • 基于Behaviors的操作库
  • 使用指南,由RussMirimar的Yonah提供
  • 开源。源于Sabre航空公司解决方案,由Bill Scott,Darren James及另外一些人维护。

1.5 qooxdoo (开发中; 成立于2005年5月)

qooxdoo,是另一个发展迅猛的应用框架,提供广泛的UI支持,正在开发基础架构等特性。

  • 基础结构特性:
    • 能轻易的捕获和操纵DOM事件
    • 支持调试
    • 支持一个时间操作的Timer类
    • Getter/Setter支持
  • UI:
    • 窗口组件库和框架
    • 界面布局管理
    • 图像缓存和透明PNG图片处理
  • 开源(LGPL).

1.6 Tibet (开发中; 创建于2005年6月)

Tibet提供了大量的易移植和完整的JavaScript API,通过这些可以快速生成大量的客户端代码,Tibet自称是企业级AJAX。

  • 远程脚本调用封装在XMLHttpRequest中
  • URI支持
  • 支持所有的HTTP事件,不再仅仅是GET和POST
  • 低级的协议-File://和WebDav也可以当作HTTP正常使用
  • Web Services调用支持,包括SOAP、XML-RPC等等
  • 大型的Javascript对象库
  • 多种多样的XML操作支持
  • IDE和开发工具
  • 开源协议(OSI)

1.7 AJFORM (创建于2005年6月)

AJFORM是一个极易上手的AJAX框架,被用来编写入门级的AJAX代码,提供有以下功能:

  • 三步安装
  • 自动支持任意HTML表单元素
  • 几乎无需编码即可实现AJAX

2 Pure Javascript: Infrastructural Frameworks

2.1 AjaxCaller(创建于2005年5月,目前是Alpha版)

AjaxCaller是一个具有多线程安全访问的XMLHttpRequest组件,主要针对Ajax开发新手,目前仍处于alpha开发阶段,仅在AjaxPatterns的在线搜索范例中使用了这个程序。

  • 用明文或者XML结构的数据实现和服务器的交互(GET/POST/PUT/DELETE)
  • 支持XMLHttRequest对象的构析(销毁对象,C++支持内存对象的构析操作)
  • 支持Response的高速缓存(尚在计划中)
  • 简单的库文件代码易于新手学习使用,并且支持脚本调试
  • 开源协议

2.2 Flash JavaScript Integration Kit

The Flash JavaScript Integration Kit可以使Flash和Javascript脚本实现相互集成。

  • 可以实现在JavaScript中调用Flash ActionScript脚本,反之亦然。
  • 几乎支持双方主要数据类型的在不同环境中的传递调用。
  • 开源协议,有几个Flash开源爱好者维护。

2.3 Google AJAXSLT (2005年6月发行)

Google AJAXSLT,是一个Javascript框架,用来执行XSLT转换以及XPath查询。

  • 目前在Google Map上就使用了这个。
  • 开源协议(BSD)

2.4 HTMLHttpRequest(Beta版;创建于2005年)

HtmlHttpRequest最大的特点就是运用XMLHttpRequest对象和标准HTML标签IFrame来实现最大限度的跨浏览跨平台的AJAX支持,其原理是在支持XMLHttpRequest的浏览器上调用XMLHttp,如果不支持,就用IFrame来模拟实现异步交互。

  • 目前支持的浏览器:IE6/Win, IE5.5/Win, IE5/Win, IE4/Win, Mozilla/Win, Opera7/Win, Safari/Mac, IE5/Mac
  • 尚未测试的浏览器:IE4/Mac, Mozilla/Mac, Opera/Other, Konqueror/Linux。
  • 开源协议(LGPL)

2.5 Interactive Website Framework (创建于2005年)

Interactive Website Framework定位在浏览器中支持各种各样的AJAX基础应用的开源项目。自称是通过JavaScript、CSS、XML和HTML实现高性能的交互式WEB框架,包括一个可定制易读的XML解析器。实际上,IWF是一个AJAX的基础框架,并且还包括一些通用脚本代码。

  • 实现了线程安全的XMLHttpRequest
  • 对XML Document进行封装,以便创建更具有可读性的代码:
    var node = doc.groceries.frozen[0].pizza[0].size;
    封装后的数据读取
    var node = doc.documentElement.firstChild.firstChild.getAttribute("size");
    原始的DOM操作读取
  • 开源协议

2.6 LibXMLHttpRequest (2003年6月发布)

libXmlRequest是一个小型XMLHttpRequest封装包

  • 用getXML()和postXML()两个事件简化XMLHttpReuqest调用
  • 支持XMLHttpRequest对象池
  • Response缓存处理
  • 源码可以使用,但是有版权保护。

2.7 MAJAX

MAJAX是另一个非常小巧的HttpRequest封装包,为收发字符型信息提供简单接口,并为每步动作设置回调界面。

2.8 RSLite (x)

RSLite是一个XMLHttpRequest封装组件,作为Brent Ashley的JSRS(JavaScript Remote Scripting)其中的一部分功能单独发布。详情可以看JSRS的介绍

2.9 Sack(开发中,成立于2005年5月)

Sack也是一个很有名字的微型XMLHttpRequest封装包。调用者可以自定义回调函数或者是DOM对象。借助于回调DOM对象,可以把Response回来的数据直接以文本的方式嵌入DOM中。

2.10 Sarissa (发布于2003年2月)

Sarissa是一个JavaScript API,封装了在浏览器端独立调用XML的功能。

  • 可移植的XMLHttpRequest对象创造
  • 可移植的XPath查询
  • 可移植的DOM操控
  • 可移植的XSLT
  • 可移植的XML序列化
  • 开源协议(GPL2.0和LGPL2.1)

2.11 XHConn (2005年4月发布)

XHConn也是一个小型的XMLHttpRequest封装库。笔者也使用改良过的XHConn,其特点就是调用简单,代码也清晰易读。

  • 例子:
    new XHConn().connect("mypage.php","POST","foo=bar&baz=qux",fnWhenDone);
  • 开源协议许可

3 Server-Side: Multi-Language

3.1 Cross-Platform Asynchronous INterface Toolkit (2005年5月)

CPAINT是一个真正的同时支持PHP和ASP/VBScript脚本的AJAX和JSRS工具包。CPAINT在后台提供你需求的AJAX和JSRS代码,并自动返回到浏览器端相应的Javascript脚本代码,这种方式易于实时反馈需求的WEB应用程序。

  • 支持PHP和ASP
  • 所有功能函数都在统一的JavaScript文件中
  • 支持远程脚本和XML
  • 支持本地和远程函数调用
  • 可以创建单个或多个XMLHttp对象
  • 返回给后台的数据即可以是文本也可以是XML/DOM文档对象
  • 支持POST和GET
  • 用服务端代理的方式实现远程函数和数据的访问操作
  • 大部分浏览器中测试正常使用
  • 在GNU、GPL、LGPL开源协议保护下发行

3.2 SAJAX (2005年3月)

SAJAX的实现方式很独特,例如:调用一个javascript方法x_calculateBudget(),将先把响应传到服务器并调用一个Java calculateBudget()方法,然后以javascript方式把值返回到x_calculateBudget_cb()中。SAJAX的名气不错,估计很多人都听过甚至用过,不过缺点就是它的这套映射理论感觉较繁锁,远不如一些轻量级的封装库好用,不过SAJAX最大的特点就是支持的平台丰富,几乎囊括了WEB下常用的编程语言和平台

  • 很方便从JavaScript函数映射到服务端代理操作
  • 支持多种平台(ASP/ColdFusion/Io/Lua/Perl/PHP/Python/Ruby)
  • 开源协议

3.3 Javascipt Object Notation (JSON) and JSON-RPC

JSON是一个"face-free" XML,而JSON-RPC是一种远程交互协议,类似于XML-RPC,对JavaScript支持较强

3.4 JavaScript Remote Scripting(JSRS)(2000年)

JSRS,较经典的远程脚本访问组件,支持将客户端数据通过服务器做代理进行远程的数据/操作交互。

  • 支持的浏览器:IE4+,NS4.x,NS6.x,Mozilla,Opera7和Galeon。
  • 服务器端脚本语言支持:ASP,ColdFusion,PerlCGI,PHP,Python和JSP(servlet)。
  • 开源协议。由Brent Ashley提供支持。

3.5 Bitkraft for ASP.NET

Bitkraft是个基于(.NET)Web框架的CLR(公共语言运行库),允许用独特的方式创建和操作分布式Web内容。用C#编写,运行在微软的.NET 1.1和Mono框架下,无缝式的客户端-服务器响应方式是它的最大特点。Bitkraft没有使用XML组织数据,而是用JSON代替。

  • 支持的浏览器: IE5+, Firefox1+, NS6
  • 服务器端要求:ASP.NET, Mono XSP, Cassini, Apache (modMono) .NET Framework 1.1+
  • 事件驱动
  • 支持同步和异步的远程代理
  • 客户端支持所有的.NET类型或自定义类对象映射到JSON中
  • 用JSON取代XML
  • 免费,开源许可协议

4 Server-Side: Java

4.1 WebORB for Java (2005年8月)

WebORB for Java是一个开发AJAX和基于Flash的富客户端应用程序的开发平台。在线例子

  • WebORB包括一个富客户端开发类库。提供简单的在线式API用来绑定或者调用任何Java对象、XML Web Services和EJB
  • 支持异步或同步的事件驱动
  • 不需要在服务端修改任何代码,不需要自定义方法或属性、变量等。不要求设计时指定代理等。
  • 同步调用不需要回调,异步调用需要一个回调方法。
  • 客户端可以向服务端请求指定的活动方式,不需要任何编程就可以把处理结果轻易的转变为状态。
  • 提供一个特定API来处理数据库查询结果-服务器代码能返回DataSet或者DataTable,而客户端以一个类似于RecordSet的JavaScript对象来显示这个结果。该对象提供检索列名和行数据的方法。
  • 支持数据分页技术。客户应用程序能检索页面中的数据。
  • 支持以参数的方式返回所有服务期端数据类型,如primitives, strings, complex types, arrays, native .net collections, remote references
  • 目前有两个版本:标准版(免费),专业版(商业许可)

4.2 Echo 2 (2005年3月)

Echo 2允许你用纯Java语言编写AJAX程序。 Demo.

  • 自动生成HTML和Javascript代码
  • 用XML在客户端-服务端传递消息
  • 如果愿意支持自定义Javascript组件
  • 开源协议(Mozilla Public License or GNU LGPL)

4.3 Direct Web Remoting (DWR) (2005)

Direct Web Remoting可以在Javascript代码中直接调用Java方法的应用框架

  • 类似于SAJAX,可以把Javascript中的请求调用转递到Java方法中并将执行结果返回给Javascript
  • 可以和任何Web框架一起使用,如Struts、Tapestry等等
  • 开源(Apache),目前该产品被加入到WebWork

4.4 SWATO (2005)

SWATO是一套可重用的和良好集成的Java/JavaScript库,它实现了一种更容易的方式来改变你的web应用程序的交互,通过AJAX方式实现。

  • 服务端Java库可以非常容易的部署到所有Servlet2.3+兼容的容器中
  • 客户端Javascript库可以在所有支持XMLHttpRequest的浏览器中使用
  • 使用JSON技术在服务端组织POJO数据,这样你可以在任何Javascript环境中(HTML、XUL、SVG)访问这些远程数据,这种方式很容易通过硬编码或者某种成熟的Javascript库集成到当前应用中
  • 提供一个简单接口使你能在Javascript中调用远程的POJO数据
  • 使用灵活的在web.xml中进行配置,并且可以集成(不是必须)到你的Spring框架中
  • 提供了几个可帮助你快速开发web应用程序的组件(如自动完成的文本框,在线表单,在线列表等等)

4.5 AJAX JSP Tag Library

The AJAX JSP Tag Library是一组JSP标签库,用来AJAX程序开发。可以在J2EE下无需Javascript就能轻松开发AJAX模式的Web Form。标签库为比较通用的AJAX功能提供了5个标签:

  • autocomplete: 用户在文本框中输入字符,自动从指定的数据中匹配用户输入的字符,类似于Google Suggest
  • callout:可以为A标签加入气泡式的消息提示框,不过是实时的服务端取出数据
  • Select/dropdown:类似于联动菜单,比如地州市的联动下拉框
  • toggle:开关闸按钮,比如在一个hidden表单域中存储true和falsh,同时显示相应的img图像
  • update field:更新数据,也就是无刷新提交了。

4.6 AJAX Java Server Faces Framework

The AJAX-JSF用来把任意的JSF应用程序转变为AJAX应用程序

  • 例子:AJAX组件的 MyFaces JSF Tree(树型目录), table scroller(可滚动的表格), tabbed pane(分页栏)
  • 开源协议(Apache Software License)

Server-Side: Lisp

5.1 CL-Ajax

CL-Ajax实现Javascript直接调用服务端Lisp

  • 生成可带参数的函数
  • 可以回调Javascript函数或者DOM对象
  • 可以集成到SAJAX中
  • 开源许可

6 Server-Side: .NET

6.1 WebORB for .NET (2005年8月)

WebORB for .NET是一个用.NET和XML Web Services方式开发AJAX和基于Flash的富客户端应用程序(在线例子)

  • WebORB包括一个富客户端开发类库。提供简单的在线式API用来绑定或者调用任何.NET对象、XML Web Services
  • 支持异步或同步的事件驱动
  • 不需要在服务端修改任何代码,不需要自定义方法或属性、变量等。不要求设计时指定代理等。
  • 同步调用不需要回调,异步调用需要一个回调方法。
  • 客户端可以向服务端请求指定的活动方式,不需要任何编程就可以把处理结果轻易的转变为状态。
  • 提供一个特定API来处理数据库查询结果-服务器代码能返回DataSet或者DataTable,而客户端以一个类似于RecordSet的JavaScript对象来显示这个结果。该对象提供检索列名和行数据的方法。
  • 支持数据分页技术。客户应用程序能检索页面中的数据。
  • 支持以参数的方式返回所有服务期端数据类型,如primitives, strings, complex types, arrays, native .net collections, remote references
  • 目前有两个版本:标准版(免费),专业版(商业许可)

6.2 Ajax.NET (2005年3月)

Ajax.NET是首家支持各种方式通过Javascript访问服务端.net的免费库

  • 类似于SAJAX,能把Javascript请求发送到.NET方法,服务端回传给Javascript,甚至包括串行化自定义类。
  • 可以在Javascript中访问Session和Application数据
  • 缓存查询结果
  • 免费使用源代码
  • 无需更改源代码,允许给Ajax.NET添加和修改方法和属性
  • 所有类支持Javascript客户端返回数据,可以在JavaScript中使用DataSet:res.Tables[0].Rows
  • 使用HtmlControls组件访问和返回数据
  • 页面无需重载,用事件代理(数据访问层)
  • 因为只提供一个调用接口方法,所以服务端CPU占用非常少

6.3 ComfortASP.NET (2005年8月)

ComfortASP.NET可以让开发者在纯.NET下开发类似AJAX(DHTML,JavaScript,XMLHttp)特性的应用程序。

  • 快速应答
  • 减少HTML传输
  • 减少页面重载
  • 无闪烁的浏览器内容更改
  • AJAX用户体验,

6.4 AjaxAspects (2005年8月)

AjaxAspects是个可以用Javascript调用服务端WebService事件的引擎

  • 用标准的SOAP和WSDL进行服务端-客户端通信
  • 用简单的类型和XML对象支持带参数的返回值
  • 缓存支持
  • 动作队列
  • 免费使用,开源协议

7 Server-Side: PHP

7.1 AjaxAC (2005年4月)

AjaxAC用一个单独类封装了完整的应用程序功能

  • 所有的功能集成在自包含的类中(另外附带一些Javascript库)
  • 调用PHP文件或者HTML页面非常简易,只需创建App类后把类引用传递给需要调用的Javascript对象或者HTML元素即可。
  • 捕获Javascript事件
  • 可以自定义配置数据,并且支持运行时参数更改
  • 无需再Javascript代码中夹杂凌乱的Html代码,所有事件都是被动态附加上的
  • 由于以上两个优点,所以支持良好的模版引擎
  • 容易Hook到PHP类和MySql数据已返回给自己的request
  • 能够容易的用Javascript建立窗口模式应用程序。

7.2 JPSpan

JPSPAN通过Javascript直接调用PHP中的函数。

  • 进行了严谨的单元测试
  • 开源许可(PHP)

7.3 XAJAX

XAjax通过Javascript直接调用PHP中的函数

  • 支持用Javascript调用PHP脚本
  • 开源许可协议

8 Server-Side: Ruby

8.1 Ruby On Rails

Ruby On Rails是一个支持AJAX的完整Web框架,使用Ruby语言编写,严格按照MVC结构开发。

  • 当Ajax出现的时候Rails还处于其发展的早期,因此Ajax可能逐渐成为Rails框架的核心。
  • 生成浏览器中大多数/全部的Window应用组件和动画的Javascript脚本。
  • 支持服务器端调用。
  • 队列支持
  • 开源许可

posted by Ryan Gene at 4:22 PM 0 comments

Sunday, September 24, 2006

[Software]User Interface Design for Web Applications

User Interface Design for Web Applications

It’s a Different World from Web Site Design

In: Articles

By Jean Tillman

Published on November 12, 2003

This article could be also be titled “Things I Wish I'd Known Before Designing My Latest Web-Based Application.” You see, I had experience designing Web sites. I’d mastered the art of creating catchy content. I worked with Web-savvy graphic artists who provided masterful images. I knew the latest HTML coding tricks and could design around the various browser quirks and incompatibilities. Armed with these skills and experiences, I volunteered to design the user interface for one of my company’s Web-based applications—and dove right in.

OK, diving didn’t work. I learned quickly that the design choices one makes for a Web-based application are often quite different from those of a content-based Web site. Why? Because they are used for different purposes. Duh! (Mental head slap.)

I needed to look at each design choice from a different angle—because I was now playing by different rules. As I made my way through the maze of design decisions, I took note of the things I did differently from my Web site projects. This article explores some of the lessons I learned along the way.

Content vs. User Entry Forms

Think about the Web sites you visit. What do you find there? Content. You see lots of text, graphics, color, animation, and sometimes even glitz and gimmicks, right? Most Web sites are designed to encourage browsing, searching, and exploration. Most importantly, they are designed to attract visitors and keep them interested.

Now think about the applications (software products) you use. You use them to complete tasks. Rarely do you see exciting graphics or animation (well, OK, unless you’re using a graphics tool or a game). Rarely do you browse, search, or read lots of text—unless it’s the online Help. You are a fairly captive audience and don’t need glitz or fascinating content to keep you there. What you do need are quick and easy methods to complete your tasks.

The Web-based application I was working on was created for system administrators in an intranet environment. These administrators would perform tasks such as adding user-IDs, configuring network components, and generating diagnostics reports. Unlike the content-based Web sites I had designed, this user interface would consist primarily of user entry forms and the navigation elements needed to find and execute the forms. There would be very little text—just the labels for input fields and other form elements—and only the most functional of graphics.

The first lesson I learned was that each design decision is dictated by the focus of the project. The focus of my previous Web site projects was content; the focus of the application’s user interface was task-based user entry forms.

As I worked through the prototyping, usability testing, and implementation of this user interface, I was constantly reminded that even the most mundane design choice needed to be examined in a different light. Here are some of the design differences I encountered.

User and Task Analysis

Analyzing and organizing content for a Web site is quite different from identifying user tasks and chunking and organizing them into usable pages of forms.

For content-based Web sites, analysis determines things like:

  • What information is needed/desired? This becomes the list of content topics.
  • What information is the most important? This goes on the Home page and main pages of the site.
  • What are the main topics and which are subtopics? These become the main and sub-navigation links.
  • Within a topic, what are the related topics? These become hypertext links.

For applications, analysis determines things like:

  • What are the main tasks performed by the intended users?
  • Which tasks are parts of other tasks?
  • Which tasks are performed linearly?
  • Which tasks are performed repeatedly in a single session?
  • What user assistance (online Help) is needed each step of the way?
  • Which tasks are performed frequently and which infrequently?
  • Would users prefer to have the tasks organized by frequency of use or by the order in which they’re performed?

These are some of the questions that need to be asked during the up-front analysis, then again during usability testing. The answers help determine the navigation scheme, the chunking of tasks into pages, and the organization of the pages.

Visited links: Most Web sites use a different color for “unvisited links” than for “visited links”; this enables users to quickly identify pages they’ve seen. But when using an application, users don’t really “visit” pages; they perform tasks such as entering data into forms. A user might fill out the same form many times (for example, to add several user-IDs to the database), so it’s not important to distinguish which pages have been visited. In cases like this, it’s preferable to specify the same color for the unvisited links as for the visited links so all links look the same.

Frames: The use of frames is a hotly debated topic in Web design. Whether this is because frames have been poorly implemented in most Web sites or because they are inherently flawed, I’m not sure. Have you ever clicked on a link in the left frame of a Web page to display an article or story in the right frame, and then tried to bookmark that article using your browser’s menu bar? You can’t. Or have you tried to grab the URL of that article to send it to a friend? You can’t. (Well, OK, with some browsers you can do both of these things with the right-click menu or by calling up the frame in a new window—but both techniques are rather cumbersome and hardly intuitive!) As Jakob Neilsen points out in his classic article “Why Frames Suck (Most of the Time)”, frames wreak havoc with the user’s mental model of Web pages.

So what about using frames in a Web-based application? Some of the problems still apply—but not all. For example, most people wouldn’t bookmark a specific page within an application. (If they did, they might get unexpected results due to security features or additional application processing required for that page.) Same thing for grabbing a URL and sending it to a friend. So, although the use of frames is still subject to debate in the world of Web-based applications, the issues are a bit different. If using frames, you would be well advised to conduct thorough usability testing—well before full implementation.

Searching: Most content-based Web sites are designed with searching in mind. They use specific strategies to increase their relevance rank with the major search engines, and many have their own search capabilities. Well-designed Web sites provide navigation and contextual orientation cues on each page—in case a user searches the Web and lands on a page within the site. In contrast, applications (Web-based products) rarely involve searching—except in the online help system, of course. The skills and strategies used to craft search-friendly Web pages aren’t needed when designing an application. Instead, the focus is on ease of navigation and form design.

Page titles: In Web site design, it’s considered good practice to use a unique page title (the text that appears in the browser title bar) for each page—for several reasons. First, it enables users who bookmark the page to quickly identify it in their Favorites. Second, it provides context for users who land on the page from outside the Web site, such as from a Search engine or hypertext link. But as we’ve already explored, bookmarking pages within an application is generally discouraged. And the concept of landing in the middle of an application while on the Web generally does not apply. For that reason, it might make the most sense to use the same page title on every page—perhaps indicating the application name and version.

Hypertext vs. linear tasks: In most Web sites, users can jump from one page to another using hypertext links. Designing good hypertext requires some thought about how and when to link to related content. But with applications, users perform tasks, which may require linear paths through the pages and additional application processing when a user navigates from one page to the next. This requires a different kind of design, one that focuses on navigation among tasks rather than hypertext among pages of content.

Scrolling: Scrolling is another hotly debated topic in Web design. Would users rather see a small number of long pages or a large number of short pages? As you can see from the multitude of styles out on the Web today, there is no right answer. But how about for applications? The choice depends on how data-entry-intensive is the application and how long the pages take to download. A user who is content to scroll through a lengthy page of text and graphics may find it cumbersome to scroll through a form while filling out the fields. However, if moving from page to page requires lots of background application processing and the pages take awhile to download, users may prefer one long form. This design choice is best made with the help of some usability testing.

Cross-browser considerations: Most Web sites are designed to work properly with all—or at least the most widely used—Web browsers. Designers often use browser-safe colors, avoid browser-specific capabilities, and perform thorough testing of their pages on many browsers and browser levels. Designers of Web-based applications, however, may have more control over the target environment, depending on the situation. They can specify a required browser, much like they specify the required hardware or operating system environment. This gives them more freedom of design and more choices for implementing browser-specific capabilities.

Browser buttons: Web users have come to understand and expect specific behaviors for common browser buttons. The Back button displays the previously visited page. The refresh button reloads the page from the server. But using these buttons with a Web-based application could yield unexpected results. For example, although the Back button may return to the previous page, it might not execute the associated application code, which could mean some of the displayed data is no longer current. For this reason, some applications provide instructions warning users to avoid these buttons—and even to hide the standard toolbar on their browser. And the designers often provide alternate navigation methods so users can move among pages without relying on these browser buttons.

Pulldown navigation menus: Many navigation schemes use cascading menus: The top or side of the page lists choices that, when moused over or clicked on, open successive levels of submenus. This scheme allows users to access pages deeper within the site without having to click through intermediate pages. However, when considering this technique for a user interface that uses forms, designers may encounter a serious technical glitch. Some browsers always display certain form elements, such as dropdown selection boxes, on top of all other page content. This means that part of a navigation menu could be obscured by form elements, preventing users from accessing the pages available from that menu. Before implementing such a scheme, you should be sure to test it with all the form elements that may exist in the user interface to avoid a major SNAFU!

Home page: Typically the first page you see on a Web site is its home page. It often describes the content areas of the site, contains news stories, describes what’s new on the site, promotes a product or service, and so on. What should the Home page of a Web-based application contain? Here are some options, along with considerations for each:

  • A “main menu” like that of many traditional applications
    But note that the widely-used pulldown menu navigation schemes would likely negate the need for a whole page devoted to a menu.
  • Product overview information or online Help for new users
    Although they may be useful for novices, these items would likely annoy advanced users. And this Help information should be readily available from all pages anyway, so taking up prime space on the home page may not be the best choice.
  • Typical “splash screen” content containing a product graphic, version level, and copyright information
    These are typically available from the “Help” or “About” page, and possibly a splash screen that disappears after a few seconds, so including it on the Home page would serve no additional purpose.
  • System statistics or other live data, if appropriate
    Depending on the product, additional application processing can add to the page download time, which is an important factor in deciding whether to include such data on a frequently visited page like a Home page.
  • Nothing—do not use a Home page
    The concept of the Home page came about with the advent of the Web, but does not exist in traditional application design. The fact that an application has a Web-based user interface does not mean it requires a Home page. Designers may find it’s best to leave it out, assuming users can readily understand what to do on the default page that’s displayed and that there is intuitive navigation to other parts of the interface.

As you can see, each option has its drawbacks, and there isn’t one right answer. The decision involves many factors, including download time, ease of navigation, and of course, the purpose of the application.

Help: The online Help on Web sites typically takes the form of Frequently Asked Questions, a welcome/overview for first-time visitors, a site map, and possibly instructions for customizing or using the Web site. In contrast, the online Help for an application typically consists of conceptual or background information about the application and how to use it, as well as context-sensitive help for pages or individual fields of a form. Help can also be found in the wording of system messages and links to more information about how to correct problems. Overall, the online Help for Web-based applications is more like that of traditional (non-Web-based) applications than for content-based Web sites.

Major “Mental Head Slap”

Whew! After taking on this user interface project, I’m a lot more insightful about design issues and, well, rather humbled by the amount of design savvy I have yet to gain. Yes, the project was successful. But I owe its success less to my previous Web design experience than to my willingness to throw out (or at least amend) everything I thought I knew about Web design and look at it from a new angle.

Sometimes the toughest lessons to learn are also the simplest. Whether you’re designing a Web site, a user interface for an application, or anything else, your design decisions should be driven by the purpose of the deliverable and the needs of the user. Well, duh!

form here

posted by Ryan Gene at 8:41 PM 0 comments

Thursday, September 21, 2006

[Software]Blogger Beta的用户终于可以正常留言了

自从升级到Blogger beta以后,一直不能在非beta的blogger上用blogger id留言,搞得很是郁闷

今天终于好了:D

另外,两个小更新:

1 www.jinweijie.com改版
2 Simple Chat:http://www.jinweijie.com/SimpleChat

posted by Ryan Gene at 7:31 PM 2 comments

Wednesday, September 13, 2006

[Software]windows快捷键

Accessibility Controls access.cpl
Add Hardware Wizard hdwwiz.cpl
Add/Remove Programs appwiz.cpl
Administrative Tools control admintools
Automatic Updates wuaucpl.cpl
Bluetooth Transfer Wizard fsquirt
Calculator calc
Certificate Manager certmgr.msc
Character Map charmap
Check Disk Utility chkdsk
Clipboard Viewer clipbrd
Command Prompt cmd
Component Services dcomcnfg
Computer Management compmgmt.msc
timedate.cpl ddeshare
Device Manager devmgmt.msc
Direct X Control Panel (If Installed)* directx.cpl
Direct X Troubleshooter dxdiag
Disk Cleanup Utility cleanmgr
Disk Defragment dfrg.msc
Disk Management diskmgmt.msc
Disk Partition Manager diskpart
Display Properties control desktop
Display Properties desk.cpl
Display Properties (w/Appearance) control color
Dr. Watson System Troubleshooting Utility drwtsn32
Driver Verifier Utility verifier
Event Viewer eventvwr.msc
File Signature Verification Tool sigverif
Findfast findfast.cpl
Folders Properties control folders
Fonts control fonts
Fonts Folder fonts
Free Cell Card Game freecell
Game Controllers joy.cpl
Group Policy Editor (XP Prof) gpedit.msc
Hearts Card Game mshearts
Iexpress Wizard iexpress
Indexing Service ciadv.msc
Internet Properties inetcpl.cpl
IP Configuration (Connection Configuration) ipconfig /all
IP Configuration (Cache Contents) ipconfig /displaydns
IP Configuration (Cache Contents) ipconfig /flushdns
IP Configuration (Release All Connections) ipconfig /release
IP Configuration (Renew All Connections) ipconfig /renew
IP Configuration (Refreshes DHCP & DNS) ipconfig /registerdns
IP Configuration (Display DHCP Class ID) ipconfig /showclassid
IP Configuration (Modifies DHCP Class ID) ipconfig /setclassid
Java Control Panel (If Installed) jpicpl32.cpl
Java Control Panel (If Installed) javaws
Keyboard Properties control keyboard
Local Security Settings secpol.msc
Local Users and Groups lusrmgr.msc
Logs You Out Of Windows logoff
Microsoft Chat winchat
Minesweeper Game winmine
Mouse Properties control mouse
Mouse Properties main.cpl
Network Connections control netconnections
Network Connections ncpa.cpl
Network Setup Wizard netsetup.cpl
Notepad notepad
Nview Desktop Manager (If Installed) nvtuicpl.cpl
Object Packager packager
ODBC Data Source Administrator odbccp32.cpl
On Screen Keyboard osk
Opens AC3 Filter (If Installed) ac3filter.cpl
Password Properties password.cpl
Performance Monitor perfmon.msc
Performance Monitor perfmon
Phone and Modem Options telephon.cpl
Power Configuration powercfg.cpl
Printers and Faxes control printers
Printers Folder printers
Private Character Editor eudcedit
Quicktime (If Installed) QuickTime.cpl
Regional Settings intl.cpl
Registry Editor regedit
Registry Editor regedit32
Remote Desktop mstsc
Removable Storage ntmsmgr.msc
Removable Storage Operator Requests ntmsoprq.msc
Resultant Set of Policy (XP Prof) rsop.msc
Scanners and Cameras sticpl.cpl
Scheduled Tasks control schedtasks
Security Center wscui.cpl
Services services.msc
Shared Folders fsmgmt.msc
Shuts Down Windows shutdown
Sounds and Audio mmsys.cpl
Spider Solitare Card Game spider
SQL Client Configuration cliconfg
System Configuration Editor sysedit
System Configuration Utility msconfig
System File Checker Utility ( Immediately) sfc /scannow
System File Checker Utility (Next Boot) sfc /scanonce
System File Checker Utility ( Every Boot) sfc /scanboot
System File Checker Utility (Default Setting) sfc /revert
System File Checker Utility (PurgeCache) sfc /purgecache
System File Checker Utility (size x) sfc /cachesize=x
System Properties sysdm.cpl
Task Manager taskmgr
Telnet Client telnet
User Account Management nusrmgr.cpl
Utility Manager utilman
Windows Firewall firewall.cpl
Windows Magnifier magnify
Windows Management Infrastructure wmimgmt.msc
Windows System Security Tool syskey
Windows Update Launches wupdmgr
Windows XP Tour Wizard tourstart
Wordpad write

from here

posted by Ryan Gene at 9:16 AM 1 comments

Name:
Location: Shanghai, Shanghai, China

Powered by Blogger
Powered by Writely

Add to Google

Site Feed