Atitit. Ajax best practices and framework selection o99

Source: Internet
Author: User

Atitit. Ajax best practices and framework Selection

 

1. Selection framework DWR/dwr3 and JQ 1

2. the convenience of DWR is divided into two parts. 1

3. Advantages of DWR: 1

4. Disadvantages: 2

5. Differences between root JQ 2

 

1. Selection framework DWR/dwr3 and JQ

 

 

2. the convenience of DWR is divided into two parts.

 


Front-end:
1. Automatic Generation of front-end JS methods (the server automatically sends JS scripts to the client ),
Users do not need to worry about it. It simulates the method calling form in the background and is easy to get started.

Background
1. Obtain the plug-in function of the Service bean in the background.
(Can be integrated with spring and struts) to provide service objects.
2. Provides implemented servlet resolution requests, Lookup service objects, and execution requests,
Converts the returned results to the data structure recognized by Js.


Author: old wow's paw attilax iron, email: [email protected]

Reprinted please indicate Source: http://blog.csdn.net/attilax

 

 

 

3. Advantages of DWR:

 
1. You can directly call the Java class. Low learning costs.
2. Hides the process implementation in Ajax. Java classes can be called directly by Js.
3. You can convert a parameter to a JavaBean (actually a JS object. Converting and defining JS objects of the same type is completed by the Framework. You only need to configure simple object ing conversion)
4. server push technology can be easily implemented

But the advantage cannot be ignored. The debug function is powerful.

4. Disadvantages:


1. The background method is exposed.
2. Only Java can be used as the background.
3. The efficiency is slower than that of a framework such as jquery.
4. DWR focuses mainly on method calls, not webpage element Dom operations.

 

5. Differences between root JQ

Jquey and prototype are powerful in front-end Dom structure operations,
The two have different strengths and do not conflict with each other.

 

Atitit. Ajax best practices and framework selection o99

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.