JavalobbyArticle"Rich Internet applications and Ajax-selecting the best product" by Marc domenig. He proposed a decision tree model to determine how to choose the right Ria product.
HTML is used when the user interface is simple;
Ajax is used
Many people on the Internet say That Ajax applicationsProgramIt should be one page one application. I think this is not suitable for my current development model.
Each application has its own special structure. I have seen a lot of applications
My friend asked me to introduce the benefits of Ajax. I thought about the following points:
1. This greatly reduces the data traffic on servers and clients. Unlike the submit-Responce era, a large amount of HTML scripts are required.
2. Enrich
Remember Google's search. When you enter "North", the search keyword starting with "North" will be immediately pulled out. For example:
Through Ajax technology, we can also easily implement this function. BelowSource codeThis is an example I
Ajax, like a common web service, can be interrupted in the specified servlet when a browser is running on the server. Unless Ajax Web browser is used, this can be found in the shortcut bar of myeclipse 7.0, which is a small icon of web. After
Using jquery ajax to interact with PHP, the select option box is dynamically created for the XML data source.
Not to mention, serving:
Javascript:
/** * aajax creates select * @ return void */ function ajax_category () { var OBJ ={};
The following example uses the get method of jquer's Ajax function for asynchronous requests.
The result is: click the button to check whether the entered username is available.
download jquery. js and create a folder named jquery under the project
The principle of AJAX is simply to use the XMLHTTPRequest object to send asynchronous requests to the server, obtain data from the server, and then use JavaScript to operate the Dom to update the page. The most critical step is to obtain request
I have heard about Ajax for a long time and it seems to be good if it is not used. Today I made a simple test. Hey hey, it's not bad!
Ajax. js
// JavaScript document
VaR XMLHTTP;VaR tagsid = "body "; Function createxmlhttp (){If (window.
Use XMLHttpRequest. responsexml;
Resolve the response to XML
The following attributes and methods are available for obtaining objects:
Table 3-1 process Dom element attributes of an XML document
Attribute nameDescription ChildnodesReturns an
Jquery ajax has been used to deal with the asynchronous problem, which is quite convenient. Recently, due to work project requirements, various States returned from the asynchronously submitted data source need to be processed, now I want to share
After a very busy day, the Web. config settings are correct and all of them are registered. If everything is correct, '_ default' is always displayed.
The Ajax. dll and ajaxpro. DLL files have been changed several times, but this problem still
Document directory
Overview
Parameters
Example
Asynchronous Communication is easy to implement with json and jquery.
Integrate jQuery with Struts2
In Struts2, the main business operations are completed through Action. In this case, jQuery is
AJAX JavaScript
This is the JavaScript code stored in the file "selectcustomer_xml.js:
var xmlHttpfunction showCustomer(str){ xmlHttp=GetXmlHttpObject();if (xmlHttp==null) { alert ("Your browser does not support AJAX!"); return; }var
I encountered a problem when I was doing ajax yesterday,
$. Ajax ({url: '/main. php? Action = getDepart & cid = '+ cid, type: 'post', dataType: 'json', success: function (data) {// data = eval ('+ data +'); if (data. s = 1) invalid parameter
In the following article http://www.firstpartners.net/blog/technology/2006/03/01/web-20-and-enterprise-java-move-over-struts/, the author introduces several common AJAX frameworks.
Finally, the author takes Struts as an example to introduce
Currently, it seems that there is no good combination of ajax and jsf in open-source projects.
The ultimate goal of label library encapsulation should be to achieve industrial-level component reuse. The template language does not need to be exposed
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.