Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Ajax In Action (2006).pdf
Скачиваний:
63
Добавлен:
17.08.2013
Размер:
8.36 Mб
Скачать

Ajax frameworks and libraries

623

 

 

Behaviour

Ben Nolan (2005)

Open source

www.ripcord.co.nz/behaviour/

Behaviour works by using CSS selectors to add JavaScript code to DOM elements. You create a hash of CSS selectors and functions that take an element, and add JavaScript event handlers such as onclick. You then register these rules against a page and compare them against their matching DOM elements, and the JavaScript code is added. The code is designed in a way that you can treat these rule files just like stylesheets so that all the page using them needs is an include. Behaviour’s goal is to remove the heavy use of onclick attributes and script nodes from pages so they aren’t messing up content. It works well and can help make your JavaScript more reusable since it’s more centralized.

Bindows

Commercial

www.bindows.net

Bindows is a software development kit (SDK) that generates highly interactive Internet applications with richness that rivals modern desktop applications using the strong combination of DHTML, JavaScript, CSS, and XML. Bindows applications require no downloads and no installation on the user’s side; only a browser is required (no Java, Flash, or ActiveX is used). Bindows provides a range of widgets, as well as native XML, SOAP, and XML-RPC support.

BlueShoes

Commercial with free version

www.blueshoes.org

Rich component suite, including a WYSIWYG text editor and spreadsheet widget.

CakePHP

Open source

http://cakephp.org/

A comprehensive port of Ruby on Rails to PHP, including top-notch support for Ajax.

624APPENDIX C

Ajax frameworks and libraries

CL-Ajax

Richard Newman (2005)

Open source

http://cliki.net/cl-ajax

CL-Ajax directs JavaScript calls directly into server-side Lisp functions. Generates JavaScript stub with arguments. Can call back to JavaScript functions or DOM objects. May be integrated into SAJAX.

ComfortASP.NET

Pre-release commercial with free download

www.daniel-zeiss.de/ComfortASP/

ComfortASP.NET is an approach that lets developers rely on pure ASP.NET programming while offering Ajax-like features. ComfortASP.NET uses Ajax (DHTML, JavaScript, XMLHTTP) to implement these features, but the web developer only implements pure server-side ASP.NET.

Coolest DHTML Calendar

Open source with commercial support

www.dynarch.com/projects/calendar/

Configurable JavaScript calendar widget; can be wired up to form fields as a drop-down or pop-up, and styled using CSS.

CPAINT

(Cross-Platform Asynchronous Interface Toolkit)

Open source (GPL and LGPL) http://cpaint.sourceforge.net

CPAINT is a true Ajax implementation and JSRS (JavaScript Remote Scripting) implementation that supports both PHP and ASP/VBScript. CPAINT provides you the code required to implement Ajax and JSRS on the back-end, while the returned data is manipulated, formatted, and displayed on the front-end in JavaScript. This allows you to build web applications that can provide near real-time feedback to the user.

Ajax frameworks and libraries

625

 

 

Dojo

Alex Russell (2004)

Open source

http://dojotoolkit.org

Dojo provides several libraries for use with Ajax, including widgets, an event model, and messaging using XMLHttpRequest and other techniques. Aims to support JavaScript in a range of settings, including SVG and Netscape’s Javabased Rhino engine, as well as in the web browser.

DWR (Direct Web Remoting)

Open source (Apache)

www.getahead.ltd.uk/dwr

Direct Web Remoting is a framework for calling Java methods directly from JavaScript code. Like SAJAX, it can pass calls from JavaScript into Java methods and back out to JavaScript callbacks. It can be used with any web framework—such as Struts or Tapestry—following a Spring-like KISS/POJO/orthogonality philosophy. Direct Web Remoting is due to be incorporated into the next release of the OpenSymphony WebWorks framework.

Echo 2

Open source (MPL or GPL)

www.nextapp.com/products/echo2

Echo 2 allows you to code Ajax apps in pure Java. Automatically generates HTML and JavaScript, and coordinates messages between the browser and the server. Offers messaging in XML. The developer can handwrite custom JavaScript components if desired.

f(m)

Open source http://fm.dept-z.com/

The f(m) project is an ECMAScript Base Class Library, based on the .NET Framework, that was written to serve as the foundation for a new breed of browser-based web applications.

626APPENDIX C

Ajax frameworks and libraries

FCKEditor

Open source

www.fckeditor.net

Rich WYSIWYG editor widget; can be swapped in for an HTML textarea in one line of JavaScript code, allowing easy integration with existing web applications, CMS, wikis, and so forth. Very similar functionality to TinyMCE.

Flash JavaScript Integration Kit

Open source

www.osflash.org/doku.php?id=flashjs

The Flash JavaScript Integration Kit allows for the integration of JavaScript and Flash content. Enables JavaScript to invoke ActionScript functions, and vice versa. All major data types can be passed between the two environments.

Google AjaxSLT

Open source license (BSD)

http://goog-ajaxslt.sourceforge.net

AjaxSLT is offered by the innovative search solutions company that refers to itself as “Google.” Google AjaxSLT is a JavaScript framework for performing XSLT transformations as well as XPath queries. Builds on Google Map work.

Guise

Commercial with free downloads

www.javaguise.com

Java-based server-side component model (similar in some ways to JSF, but simpler). Currently integrates Ajax functionality for greater responsiveness.

HTMLHttpRequest

Angus Turnbull (2005)

Open source (LGPL)

www.twinhelix.com/JavaScript/htmlhttprequest/

Simple remote scripting wrapper. Uses XMLHttpRequest and IFrames as well for improved compatibility.