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
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
1. Create an XMLHTTPRequest object
2. Register a listener (Receive data from the server)
During Ajax execution, the server notifies the client of the current communication status. Communication status changes must be triggeredOnreadystatechange
When developing with jquery mobile, sometimes we need to display a loading prompt box during the Ajax request (for example, a rotating image + a prompt: loading ...). At this time, we can manually display the jquery mobile loader. The general
In this example, the POST method in the jquery framework is used to transmit data between JSP page data at the front end and actions at the background of struts2.
First, compile the JSP page
JSPCode
User Login Username:
Jersey is not introduced here. It is a restful Web Service implemented by Sun. For details, refer to the following link: use jersey and Apache Tomcat to build a restful web service.
What I want to talk about here is how to obtain the JSON data of
Details about Ajax applications in Web2.0
[Guide] This article uses two examples to verify the existence of a pass account to describe Ajax in practice: return a server
UTF-8 transcoding can be used in the background to solve Chinese garbled characters. This method is applicable to form submission and encoding is completed on the server. The Code is as follows:Form. jsp: test form submission User name: password:
Ajax implementation class Google suggest Effect
* Project name: Ajax implementation class Google suggest Effect* Author: Crawler* Contact: caolvchong@gmail.com* Time: 2007-7-7* Cause:This problem was raised during the internship interview. It took a
Front-end JSP page:
"> my JSP 'jqueryajax. JSP 'starting page jquery dynamically acquires data, demo ..
A servlet in the background obtains data from MySQL and processes it as a jsonarray
package com.action;import
First, introduce jquery. JS and ajaxfileupload. JS files are generally introduced at the end, so you can use jquery's jquery. noconflict (); method to avoid conflicts, among which jquery. JS and ajaxfileupload. JS is recommended to be placed at the
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 following example shows how to use the post method of Ajax. The post method of AJAX is usually used.
In this example, enter a user name to check whether the user name can be used.
: Create an Ajax Tool class
(1): Create ajaxutils. js
(2): the
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service