Ajax Framework Rollup

Source: Internet
Author: User
Tags functions header net variables php class php and string ruby on rails
Ajax|ajax Framework

1. Pure http://www.alixixi.com/web/a/JavaScript: Application frameworks

1.1 Bindows (founded in 2003)

Backbase is a complete suite of Windows desktop Web application solutions that are combined with strong technologies such as DHTML, JavaScript, CSS, and HTML. Bindows need not download installation client support components (such as Java, ActiveX or Flash), only one browser. The idea of pure OO is embodied anywhere in Bindows, Bindows is perhaps the most complete and powerful javascript:void (0) that I have ever seen. >ajax Application Platform.
Bindows is a commercial program that uses technology from MB (headquartered in GA USA, the main development center in Sweden, founded in 2002).

The features and features provided by the Bindows framework are:
    • Class and API based on face-object technology
    • A complete Windows desktop system that supports a variety of feature window modes, including menus, forms, tables, sliders, measuring instrument windows, and other Windows window features.
    • is to develop Zero-footprint (0 space occupancy) SOA client application Preferred Toolkit
    • Xml,soap and XML-RPC support for this machine
    • Single-user to enterprise-level development support
    • Built in perfect javascript:void (0); >ajax Support
Bindows Development Environment:
    • Support for enterprise-scale project development
    • Cross-browser, cross-OS platform support
    • Not restricted by server structure
    • Good interoperability with new and existing resources
    • Unified Development Interface

1.2 Backbase (founded in 2003)

Backbaseis a complete browser-side framework that provides rich browser-operation capabilities as well as the right. NET and the Java platform integration.
Commercial products from Backbase B.V (headquartered in Amsterdam, founded in 2003).

1.3 DOJO (in development, founded in September 2004)

Dojo provides complete lightweight window components and browser-Server message mapping support

1.4 Open Rico (in development; founded in May 2005; Based on an early proprietary framework)

Open Rico is a multipurpose framework that supports AJAX architecture and user interaction.

1.5 Qooxdoo (in development; Founded in May 2005)

Qooxdoois another fast-growing application framework that provides extensive UI support and is developing features such as infrastructure.
  • Infrastructure Features:
    • can easily capture and manipulate DOM events
    • Support debugging
    • Timer class that supports one time operation
    • Getter/setter Support
  • Ui:
    • Window component libraries and frames
    • Interface Layout Management
    • Image caching and transparent PNG image processing
  • Open Source (LGPL).

1.6 Tibet (in development; Founded in June 2005)

Tibet provides a large number of portable and complete JavaScript APIs that can quickly generate a large number of client-side code, Tibet claiming to be enterprise-class javascript:void (0); >ajax.

1.7 Ajform (founded in June 2005)

Ajform is a very easy to javascript:void (0); >ajax framework, which is used to write entry-level javascript:void (0); " >ajax code that provides the following features:

2 Pure http://www.alixixi.com/web/a/JavaScript: Infrastructural frameworks

2.1 Ajaxcaller (created in May 2005, currently Alpha)

Ajaxcaller is a XMLHttpRequest component with multi-threaded security access, primarily for Ajax developers, and is still in the alpha development phase, only in ajaxpatterns This program is used in the online search paradigm.
  • Data implementation and server interaction with plaintext or XML structures (get/post/put/delete)
  • Support the Xmlhttrequest of the object (Destroy object, C + + support memory object's operation of the structure)
  • Support for response cache (still in plan)
  • Simple library file code is easy for beginners to learn to use, and support script debugging
  • Open Source Protocol

2.2 Flash JavaScript Integration Kit

The flash JavaScript Integration Kit enables the integration of Flash and JavaScript script implementations.

2.3 Google Ajaxslt (June 2005 issue)

Google Ajaxslt, a JavaScript framework, is used to perform XSLT transformations and XPath queries.

2.4 Htmlhttprequest (Beta edition; founded in 2005)

Htmlhttprequest 's biggest feature is the use of XMLHttpRequest objects and standard HTML tag iframe to achieve maximum cross viewing across the platform Javascript:void (0); The principle of >ajax support is to invoke XMLHTTP on browsers that support XMLHttpRequest and, if not, to simulate asynchronous interactions with an IFRAME.

2.5 Interactive Website Framework (founded in 2005)

Interactive Website Framework positioning supports a wide variety of javascript:void (0) in browsers; >ajax Open Source project for basic application. An interactive web framework that boasts high performance through JavaScript, CSS, XML, and HTML, including a customizable, readable XML parser. In fact, the IWF is a javascript:void (0); The >ajax infrastructure, and includes some common scripting code.

2.6 Libxmlhttprequest (released in June 2003)

Libxmlrequest is a small xmlhttprequest package

2.7 Majax

Majax is another very compact HttpRequest package that provides a simple interface for sending and receiving character information and sets the callback interface for each action.

2.8 Rslite (x)

Rslite is a XMLHttpRequest packaged component that is released separately as part of Brent Ashley's JSRs (JavaScript Remote scripting). Details can see the introduction of JSRs

2.9 Sack (in development, founded in May 2005)

Sack is also a very name for a miniature XMLHttpRequest package. The caller can customize the callback function or a DOM object. By using the callback DOM object, you can embed response data back into the DOM directly as text.

2.10 Sarissa (released in February 2003)

Sarissa is a JavaScript API that encapsulates the ability to invoke XML independently at the browser end.

2.11 Xhconn (released in April 2005)

Xhconn is also a small XMLHttpRequest packaging library. The author also uses the modified Xhconn, which is characterized by simple calls, and the code is clearly readable.

3 Server-side:multi-language

3.1 Cross-platform Asynchronous INterface Toolkit (May 2005)

Cpaint is a real javascript:void (0) that supports both PHP and Asp/vbscript scripts; >ajax and JSRs kits. Cpaint in the background to provide you with the required javascript:void (0); >ajax and JSRs code, and automatically returns to the browser-side corresponding JavaScript scripting code, which is easy to feed back to the requirements of the Web application.

3.2 SAJAX (March 2005)

SAJAX implementations are unique, such as invoking a JavaScript method, X_calculatebudget (), which will first upload the response to the server and invoke a Java Calculatebudget () method. The value is then returned to X_CALCULATEBUDGET_CB () in JavaScript mode. Sajax's reputation is good, it is estimated that a lot of people have heard or even used, but the disadvantage is that it's this set of mapping theory, far less than some lightweight packaging library easy to use, but sajax the biggest feature is the support of the platform is rich, almost include the web under the Common programming language and platform

3.3 Javascipt Object notation (JSON) and JSON-RPC

JSON is a "face-free" XML, and json-rpc is a remote interaction protocol, similar to XML-RPC, with strong support for JavaScript

    • support for multi-server platforms : Java, Python, Ruby, Perl.
    • There are different packages and license agreements for different platforms, such as Json-rpc-java.

3.4 JavaScript Remote Scripting (JSRS) (2000)

JSRs, a more classic remote scripting access component, supports the remote data/operation interaction of the client data through the server proxy.

3.5 bitkraft for asp.net

Bitkraft is a CLR (common language Runtime) based on the (. NET) Web framework that allows you to create and manipulate distributed Web content in a unique way. Written in C #, running under Microsoft's. NET 1.1 and Mono framework, seamless client-server response is its greatest feature. Instead of using XML to organize data, Bitkraft uses JSON instead.

    • Supported browsers: ie5+, firefox1+, NS6
    • Server-side requirements: asp.net, Mono xsp, Cassini, Apache (Modmono). NET Framework 1.1+
    • Event-driven
    • Remote agents that support synchronous and asynchronous
    • The client supports all. NET type or custom class object is mapped into JSON
    • Replacing XML with JSON
    • Free, open source license Agreement

4 Server-side:java

4.1 Weborb for Java (August 2005)

Weborb for Java is a development javascript:void (0); >ajax and the development platform for rich client applications based on Flash. Online Example

4.2 Echo 2 (March 2005)

Echo 2 allows you to write Javascript:void (0) in the Pure Java language; >ajax program. Demo.

4.3 Direct Web Remoting (DWR) (2005)

Direct Web Remoting can directly invoke the application framework of Java methods in JavaScript code

4.4 Swato (2005)

Swato is a reusable and well integrated Java/javascript library that implements a much easier way to change the interaction of your Web applications through javascript:void (0); >ajax way to achieve.

4.5 javascript:void (0); " >ajax JSP Tag Library

the AJAX JSP The library is a set of JSP tag libraries used to javascript:void (0); >ajax program development. can easily develop javascript:void (0) Under the Java EE without JavaScript. The web Form for >ajax mode. The tag library is a more general javascript:void (0); The >ajax feature provides 5 tags: tag Library

    • AutoComplete: The user enters the character in the text box, automatically matches the character entered by the user from the specified data, similar to the Google suggest
    • Callout: You can add a bubble message to the a tag box, but the real-time server to remove data
    • Select/dropdown: Similar to the linkage menu, such as the Prefectures linkage drop-down box
    • Toggle: Switch brake buttons, such as storing true and falsh in a hidden form field, and displaying the appropriate IMG image
    • Update field: Updates the data, which means no refresh commits.

4.6 javascript:void (0); " >ajax Java Server Faces Framework

the ajax-jsf used to transform any JSF application into javascript:void (0); >ajax Applications

Server-side:lisp

5.1 Cl-ajax

Cl-ajax implements JavaScript to invoke service-side Lisp directly

6 server-side:. NET

6.1 Weborb for. NET (August 2005)

weborb for. NET is a. NET and XML Web Services development javascript:void (0); " >ajax and Flash based rich client applications ( online example )

6.2 Ajax. NET (March 2005)

. NET is the first free library that supports various ways to access server. NET via JavaScript Ajax. Net

    • Like Sajax, JavaScript requests can be sent to the. NET method, service-side back to JavaScript, and even serialization of custom classes.
    • Session and application data can be accessed in JavaScript
    • Cached Query Results
    • Free use of source code
    • No need to change the source code, allow to add and modify methods and properties to Ajax.NET
    • All classes support JavaScript client return data and can use Dataset:res.tables[0 in JavaScript. Rows
    • Accessing and returning data using the HtmlControls component
    • The page does not need to be overloaded with event proxies (data access layer)
    • Because only one call interface method is provided, the server-side CPU takes up very little

6.3 Comfortasp.net (August 2005)

comfortasp.net can let developers in pure. NET under the development of similar javascript:void (0); >ajax (Dhtml,javascript,xmlhttp) attribute application.

6.4 Ajaxaspects (August 2005)

ajaxaspects is an engine that can use JavaScript to invoke server-side WebService events

7 server-side:php

7.1 Ajaxac (April 2005)

Ajaxac encapsulates the full application functionality with a separate class

7.2 Jpspan

Jpspan calls functions in PHP directly from JavaScript.

7.3 Xajax

Xajax The functions in PHP directly via JavaScript

8 Server-side:ruby

8.1 Ruby on Rails

Ruby on Rails is a support javascript:void (0); >ajax's complete Web framework, written in Ruby language, is developed in strict accordance with the MVC architecture.

From Moztwwiki
This article is the JavaScript for Mozilla Developer Center: void (0); >ajax:getting started (HTTP://DEVELOPER.MOZILLA.O ...) of translation. The author of the original and the history of the compilation can be seen on its history page (HTTP://DEVELOPER.MOZILLA.O ... action=history).

This article describes JavaScript: void (0); >ajax the basics of related technologies and provide examples for you to use.




Javascript:void (0); " What's >ajax?



Javascript: void (0); >ajax (Asynchronous JavaScript and XML, asynchronous JavaScript, and XML technology) is a new word, but the connotation is two JavaScript features that have existed for some time. These two functions have been neglected in the past, in Gmail, Google suggest and Google Maps after the emergence of the fame world know.

These two JavaScript features are:

* Send a request to the server without reading the page again (request)
* Parse, use XML file



The first step-how to issue XMLHttpRequest



In order to send HTTP requirements to the server with JavaScript, you must first make the entity (instance) in the relevant category (class). Internet Explorer First provides the XMLHTTP category as an ActiveX object, while Mozilla, Safari, and other browsers then support the categories and attributes in this ActiveX object in the XMLHttpRequest category.

So, if you want to cross browser, you can write this:

if (window. XMLHttpRequest) {//Mozilla, Safari, ...
Http_request = new XMLHttpRequest ();
else if (window. ActiveXObject) {//IE
Http_request = new ActiveXObject ("Microsoft.XMLHTTP");
}

(Since this program is for illustration only, it is the simplest way to write it.) In the third step of this article, there is another kind of writing that we use more often. )

Some versions of Mozilla browsers have errors when the server returns data that does not contain an XML Mime-type file header (header). To avoid this problem, you can overwrite the file headers returned by the server in the following ways, so as not to return the text/xml.

Http_request = new XMLHttpRequest ();
Http_request.overridemimetype (' Text/xml ');

The next step is to determine how the server is going to return the data, at which point you can specify a JavaScript function name to process the return value by using the onReadyStateChange attribute, for example:

Http_request.onreadystatechange = nameofthefunction;

Note that the specified function name has no parentheses and no parameters. In addition to specifying a function name, you can also define a new handler using the Javascript instant definition function, as follows:

Http_request.onreadystatechange = function () {
Do something.
};

Once you have decided to process the request, you need to call the open () and send () method in the HTTP request category, as follows:

Http_request.open (' Get ', ' http://www.example.org/some.file ', true);
Http_request.send (NULL);

* The first parameter of the Open () is the HTTP request method, which is chosen from the Get, POST and head, and can be supported on your host. To follow the HTTP standard, remember that these methods are all uppercase, or some browsers (such as Firefox) may not be able to ignore you. A list of other methods that HTTP request can support refer to the http://www.w3.org/Protocol ....
* The second parameter is the destination URL. Based on security considerations, you cannot call a Web page other than the same domain. If the domain is different, the error of "Insufficient permissions, denial of Access" occurs when you call open (). Most of the mistakes that we make are the pages in the DOMAIN.TLD Web site that call Www.domain.tld, just a little bit of difference.
* The third parameter determines whether this request is not synchronized and, if set to TRUE, continues to execute the rest of the program even if the server has not yet returned the data, which is the JavaScript: void (0); The meaning of the first a represented in >ajax.

The parameters of Send () can be anything that you want to pass to the server when you send the request at POST, and the data is listed as a query string, for example:

Name=value&anothername=othervalue&so=on

However, if you want to send data by POST, you must first change the MIME form to the following:

Http_request.setrequestheader (' Content-type ', ' application/x-www-form-urlencoded ');

Otherwise, the server will not be able to ignore the information you pass over.


Step Two – Process the data returned by the server



The function name that handles the return value must be provided when the request is outgoing.

Http_request.onreadystatechange = nameofthefunction;

So let's take a look at what this function should do. First, it must check the current state of the request: if the status value of 4 indicates that the server has returned all the information, it can begin parsing the resulting information.

if (http_request.readystate = = 4) {
All OK, continue to parse
} else {
It's not done yet.
}

ReadyState all possible values are as follows:

* 0 (not yet started)
* 1 (in read)
* 2 (Read)
* 3 (exchange of information)
* 4 (all completed)

(Data Source: MSDN (http://msdn.microsoft.com/...)

Next, check the HTTP status code returned by the server. All status codes are available on the Web site (Http://www.w3.org/Protocol ...). , but we're going to be in the state of OK.

if (Http_request.status = = 200) {
Everything is available
} else {
There seems to be a problem, maybe the server returned 404 (check this page) or 500 (internal error) or something
}

After checking the HTTP status code returned, it is up to you to decide what to do with the returned data. There are two ways to access data:

* http_request.responsetext– This will send back the worth of string
* http_request.responsexml– This will treat the return value as a XmlDocument object, and then use the JavaScript DOM correlation function to process


Step three-everything is ready-simple example



OK, then do a simple HTTP example, demo just the various techniques. This JavaScript will ask the server for an HTML file (test.html) with the words "i ' m a test.", and then list the contents of the file with alert ().


Style= "Cursor:pointer; Text-decoration:underline "
>
Make a request


In this example:

* First user presses "make a request"
* This will call the MakeRequest () function, also passed the parameter value test.html (that is, the name of the HTML file, placed in the same directory)
* The request is then issued and the dominance is handed over to the onreadystatechange-specified alertcontents () function
* Alertcontents () Check that the response is normal and then alert () lists the contents of the test.html

You can then test this example (Http://www.w3clubs.com/moz ..., or refer to the test file (Http://www.w3clubs.com/moz ...).


Step Fourth – Process XML response values



In the previous example, after receiving the HTTP return value we used the contents of the test.html file with the Reponsetext attribute of the object, and then try the method of Responsexml property.

First, we need to make a well-formed XML file so that we can take it later. This file name called Test.xml, the contents are as follows:

<--l version= "1.0"-->

I ' m a test.


In the program, we call the file with a place that only needs to be modified as follows:

...
>
...

Then in Alertcontents (), we have to take alert (http_request.responsetext); Change to this:

var xmldoc = Http_request.responsexml;
var root_node = xmldoc.getelementsbytagname (' root '). Item (0);
alert (root_node.firstChild.data);

This allows us to get the XmlDocument object that Responsexml returns, and then takes the XML file content in a DOM-related way. You can refer to Test.xml's original code (Http://www.w3clubs.com/moz ...). and the Modified test program (Http://www.w3clubs.com/moz ...).

For other DOM-related methods, refer to the Mozilla Dom (http://www.mozilla.org/doc) file.
<

Related Article

Cloud Intelligence Leading the Digital Future

Alibaba Cloud ACtivate Online Conference, Nov. 20th & 21st, 2019 (UTC+08)

Register Now >

Starter Package

SSD Cloud server and data transfer for only $2.50 a month

Get Started >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.