AJAX-based application architecture summary (3)

xiaoxiao2021-03-17  229

3 Server: Multiple languages ​​3.1 Cross-platform Asynchronous Interface Toolbox (May 2005) cpaint: http://cpaint.sourceforge.net/, is a real support for PHP and ASP / VBScript Ajax implementation and JSRS ( JavaScript remote script implementation. CPAINT provides you with the code that implements AJAX and JSRS in the background, while the returned data is operated, formatted, and displayed in JavaScript. This allows you to create a web application that provides feedback to the user close to real-time. · Support PHP & ASP • JavaScript files for all functions · Support Remote Scripts and XML · Support Local and Remote Functions · Single or Multiple XMLHTTP objects • Back to background data in text or JavaScript XML / DOM document objects · Can support POST and GET Requests • Background proxy functions to access remote functions and data • Test over all major browsers · 3.2 Sajax under GNU GPL & LGPL (available, but not 1.0 version; Since March 2005) website is: http: //www.modernmethod.com/sajax/, directly transfer from JavaScript to your server-side language and return again. For example, call a JavaScript method x_calculatebudget (), will first reach the server and call a Java CalculateBUDGET () method, then return the value to x_calculatebudget_cb () in a JavaScript mode. · Convenience from the JavaScript proxy function to the mapping of the background operation. · Calling to many server-side platforms (ASP / COLDFusion / IO / Lua / Perl / PHP / PYTHON / RUBY) can be proxy. · Open source license. From many contributors. 3.3 JavaScipt Object Sign (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 processes protocol, similar to XML-RPC, strongly supporting JavaScript customers. · Implement multiple server-side platforms (http://www.json-rpc.org/impl.xhtml) :java ,python ,ruby ,perl. · There are independent packages and licenses 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 the call from JavaScript to your server language and return again. · Well-known browser: IE4 , NS4.x, NS6.x, Mozilla, Opera7, and Galeon. · Server support: ASP, ColdFusion, Perlcgi, PHP, Python, and JSP (servlet). · Open source license. Supported by Brent Ashley (http://www.ashleyit.com/). 4 Server: Java Note: Many existing frames have recently been adding Java support (such as Struts), and I will point out later.

4.1 Weborb for Java (Since August 2005) Website: http://www.them/aboutweb.com/weborb/aboutweborb.htm, is a platform that supports development Ajax and Flash-based fat client applications, and you can use them It is connected to Java objects and XML web services. Online example (http://www.themidnightcoders.com/examples) · Weborb includes a client library called a rich client system (http://www.themidnightcoders.com/rcs/index.htm). The rich client system provides a simple online API to bind to any Java object, XML web service, or EJB method. · Support synchronous and asynchronous method calls. · Do not require any modification on server-side code, do not need to customize method properties, special signatures or parameter types. ★ Do not require a generation to generate agency. • Synchronous call returns data from this call (no need to call). Asynchronous calls are dependent on a backup implementation. • Any server-side method can be called synchronously or asynchronously. · The client application can request a specified activity to request the server object. As a result, the object can be easily created without any special programming. · Provide a specific API to process database query results - server code can return to the DATA collection or DATA table, and the client displays this result with a special RecordSet JavaScript object. This object provides a method to retrieve column names and row data. · Support data paging technology. The client application can retrieve the data in the page. · Support all server-side parameter types and return values ​​- prototype, string, composite type, array, native .NET collection, remote reference. · There are two versions available: Standard Edition (Free) and Professional Edition (Business License) 4.2 Echo 2 (Since March 2005) Website is: http://www.nextapp.com/products/echo2/, allow you to use Pure Java code writes a Jax application (example (http://demo.nextapp.com/interactivetest/ia)). HTML and JavaScript are automatically generated. · Coordinate the news between browsers and servers. The message form is XML. • Customized JavaScript components can be manually written if needed. · Open source license (Mozilla public permission or GNU LGPL). From NEXT APP, INC. (Http://www.nextapp.com/). 4.3 Direct Web Remoting (2005) The URL is: http://www.getahead.ltd.uk/dwr/, is a framework for calling the Java method directly from the JavaScript code. · Like Sajax, you can pass the calls in JavaScript to the Java method and return to JavaScript call. · 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/). Added to WebWork (http://www.opensymphony.com/webwork/) version. 4.4 Swato (2005) The URL is: http://swato.dev.java.Net/, is a reusable and well-integrated Java / JavaScript library that achieves a easier way to change your The interaction of the web application, it is implemented by ajax. • The server-side Java library can be easily configured to all servlet 2.3 matching containers.

转载请注明原文地址:https://www.9cbs.com/read-129673.html

New Post(0)