AJAX-based Application Architecture Rollup (2)

Source: Internet
Author: User
Tags filter functions net php class php file php and version ruby on rails
Ajax| Program | architecture • For example

New Xhconn (). Connect ("mypage.php", "POST", "Foo=bar&baz=qux", Fnwhendone);

• Open Source License. Maintained by Brad Fults.
3 server-side: multiple languages


3.1 Cross-platform Asynchronous Interface Toolbox (May 2005)

cpaint:http://cpaint.sourceforge.net/, is a true support for PHP and Asp/vbscript Ajax implementations and JSRS (JavaScript remote scripting) implementations. Cpaint provides you with the required code to implement Ajax and JSRs in the background, while the returned data is manipulated, formatted, and displayed in JavaScript format. This allows you to create Web applications that provide near-real-time feedback to the user.

• Support Php&asp

• Consistent JavaScript files for all functions

• Support for remote scripts and XML

• Support for local and remote functions

• Single or multiple XMLHTTP objects

• Return background data as text or JavaScript Xml/dom document objects

• Ability to support post and get requests

• Background agent functions to access remote functions and data

• Tested on all major browsers

• Issued under the GNU GPL&LGPL Protection

3.2 SAJAX (available, but not version 1.0; since March 2005)

The website is: http://www.modernmethod.com/sajax/, directly sending calls from JavaScript to your server-side language and returning again. For example, calling a JavaScript method X_calculatebudget () will first reach the server and invoke a Java Calculatebudget () method, and then return the value to X_ in JavaScript mode CALCULATEBUDGET_CB ().

• Facilitates mapping from JavaScript proxy functions to background operations.

• The ability to delegate calls to numerous server-side platforms (Asp/coldfusion/io/lua/perl/php/python/ruby).

• Open Source License. From a variety of contributors.

3.3 Javascipt Object Flags (JSON) and JSON-RPC

JSON (http://www.crockford.com/JSON/index.html) is a "Fat free XML Selection", while Json-rpc (http://www.json-rpc.org/) is a remote process protocol, Similar to XML-RPC, strong support for JavaScript customers.

• Implement a multiple server-side platform (http://www.json-rpc.org/impl.xhtml): Java,python,ruby,perl.

• Separate packaging and licensing for each platform, such as Json-rpc-java (http://oss.metaparadigm.com/jsonrpc/).

3.4 JavaScript Remote script (JSRS) (since 2000)

The URL is: http://www.ashleyit.com/rs/jsrs/test.htm, directly send calls from JavaScript to your server-side language and return again.

• Well-known browsers: Ie4+,ns4.x,ns6.x,mozilla,opera7 and Galeon.

• Server-side support: Asp,coldfusion,perlcgi,php,python and JSP (servlet).

• Open Source License. The support is provided by Brent Ashley (http://www.ashleyit.com/).

4 Server-side: Java



Note: Many of the existing frameworks are recently adding Java support (such as struts), which I will point out later.

4.1 Weborb for Java (since August 2005)

URL: http://www.themidnightcoders.com/weborb/aboutWeborb.htm, is a platform that supports the development of Ajax and Flash based fat client applications, and can put them with Java objects and XML Web services are tied together. Online Example (http://www.themidnightcoders.com/examples)

Weborb includes a client library called a Rich Customer System (http://www.themidnightcoders.com/rcs/index.htm). The rich customer System provides a simple online API to bind to and invoke any Java objects, XML Web Services, or methods on the EJB.

• Synchronous and asynchronous method calls are supported.

• Does not require any modification on the server-side code, and does not require custom method attributes, special signatures, or parameter types. ★ Do not require a design-time build agent.

• Synchronous calls return data from the call, which does not need to be called back. An asynchronous invocation relies on a callback implementation.

• Any server-side method can be invoked synchronously or asynchronously.

• Client applications can request the specified activity mode to the server object. As a result, objects can be easily created without any special programming.

• Provides a specific API to handle database query results-server code can return data sets or data tables, and clients display this result with a special recordset JavaScript object. This object provides a method for retrieving column names and row data.

• Support data paging technology. The client application can retrieve data from the page.

• Supports all server-side parameter types and returns values-prototypes, strings, composite types, arrays, native. NET collections, remote references.

• A total of two versions available: Standard Edition (free) and Professional Edition (commercial license)

4.2 Echo 2 (since March 2005)

The URL is: http://www.nextapp.com/products/echo2/, which allows you to write AJAX applications with pure Java code (example Http://demo.nextapp.com/InteractiveTest/ia ))。

Automatically generates HTML and JavaScript.

• Reconcile the messages between the browser and the server. The message form is XML.

• Custom JavaScript widgets can be written manually if needed.

• Open Source License (Mozilla Public License or GNU LGPL). From next app,inc. (http://www.nextapp.com/).

4.3 Direct Web Remoting (DWR) (2005)

The URL is: http://www.getahead.ltd.uk/dwr/, a framework for invoking Java methods directly from JavaScript code.

• Like Sajax, you can pass calls in JavaScript to Java methods and return to JavaScript callback.

• Can be used with any web framework (struts,tapestry, etc.).

• Open Source License (Apache (http://www.apache.org/LICENSE.txt)). Supported by Joe Walker (http://www.getahead.ltd.uk/sg/space/joe/). Was added to the WebWork (http://www.opensymphony.com/webwork/) version.

4.4 Swato (2005)

The URL is: http://swato.dev.java.net/, a reusable and well integrated Java/javascript library that implements an easier way to change the interaction of your Web application, which is implemented through Ajax.

• Server-side Java libraries can be easily configured into all of the servlet 2.3+ matching containers.

• The client JavaScript library works in a variety of browsers that support Httpxmlrequest.

• Use JSON to marshal your Pojo data on the server side. This allows you to access remote data in any JavaScript environment (HTML,XUL,SVG), which can be easily implemented through hard coding or integration with a mature JavaScript library.

• Provides a simple interface to enable your JavaScript code to interact with remote Pojo (RPC, etc.) that is exposed to the client.

• Use the Web.xml in the And Easy and flexible configuration, and can (but not rely on) integrate with spring.

• Provides several components to help you quickly develop Web applications (such as automatically completed text boxes, online forms, online lists, and so on).



5 Server side: Lisp

5.1 Cl-ajax

URL: Http://cliki.net/cl-ajax, to implement JavaScript directly invoke the server-side Lisp function.

• Output functions as follows:

(export-function # ' my-function)

• JavaScript proxies with parameters can be generated.

• Can be called back to JavaScript functions or DOM objects.

• Can be integrated into Sajax.

• Open source (custom, very flexible, licensed). Maintained by [Richard Newman] (http://www.holygoat.co.uk/).

6 server-side:. NET

6.1 Weborb For.net (since August 2005)

Web site: http://www.themidnightcoders.com/weborb/aboutWeborb.htm, a platform for developing Ajax and Flash-based rich client applications, and connecting them to. NET Objects and XML Web Services. (online example (Http://www.themidnightcoders.com/examples))

Weborb includes a client library named Rich client System (http://www.themidnightcoders.com/rcs/index.htm). Rich Client System provides a simple online API to bind to and invoke any. NET object or any method on an XML Web service.

• Support for synchronous and asynchronous method calls

• Does not require any modification on the server-side code, and does not require custom method attributes, special signatures, or parameter types. * * does not require design-time proxy generation.

• Synchronous calls return data from the call (no callback is required). An asynchronous invocation relies on a callback implementation.

• Any server-side method can be invoked synchronously or asynchronously.

• Client applications can request the specified activity mode to the server object. As a result, objects can be easily created without any special programming.

• Provides a specific API to handle database query results-server code can return a dataset or DataTable, and the client displays the result with a special recordset JavaScript object. This object provides a method to retrieve column names and row data

• Support for data page technology. The client application can retrieve data from the page.

• Supports all server-side parameter types and returns values-prototypes, strings, composite types, arrays, native. NET collections, remote references

• A total of two versions available: Standard Edition (free) and Professional Edition (commercial license)

6.2 Ajax.NET (since March 2005)

The URL is: http://ajax.schwarz-interactive.de/, a library that implements access from JavaScript to server-side. Net.

• Like Sajax, you can pass calls in JavaScript to the. Net method and return to JavaScript callback.

• Access to session data from JavaScript.

• Cache Results

• Free use, available source code, not specified use license. Maintained by Michael Schwarz (http://weblogs.asp.net/mschwarz/).

• Do not allow changes to the source code, using attribute tagging method

• Full class support to return client JavaScript values

• Use HtmlControls for input and return values

• Can return data tables, datasets, data Views, arrays, and collections

7 Server-side: PHP

7.1 Ajaxac (since April 2005)

The URL is: http://ajax.zervaas.com.au/, with a single PHP class encapsulating the full application.

• All application code is self-contained in a single class (with additional JavaScript libraries attached)

• Cleanly call PHP file/html page. Simply create the application class, and then reference the application JavaScript and the HTML element that relies on any needs to the application.

• Easy to handle inline features of JavaScript events

• Create child needs and handle their inline functionality

• Allow custom configuration values, so some units can be set at run time

• Clutter-free JavaScript code is mixed in code that calls HTML-all events are dynamically dependent

• Due to the above two reasons easy to integrate with template engine

• Easily hook into existing PHP classes or MySQL databases to return data from child requirements

• Extensible widget structure for JavaScript objects can be easily further generated (but some work needs to be done)

Background:

• Open Source License (Apache2.0). Supported by Zervaas Enterprises (http://ajax.zervaas.com.au/)

7.2 Jpspan

URL is: http://jpspan.sourceforge.net/wiki/doku.php, directly to the JavaScript call to the PHP function.

• A serious unit test was conducted.

• Open Source License (PHP).

7.3 Xajax

URL is: http://xajax.sf.net, directly to the JavaScript call to the PHP function.

• Use JavaScript proxies to invoke PHP scripts.

Open-source Created by J.max Wilson.

8 Server side: Ruby

Ruby on Rails (http://www.rubyonrails.org/) is a common, powerful AJAX-enabled web framework:

• When Ajax appears, rails is still in its early stages of development, so Ajax may gradually become the core of the rails framework.

• Create JavaScript scripts for most/all window widgets and animations in the browser.

• Support for server-side calls.

• Scheduling support.

• Open Source License.



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.