The Dr Dobbs website recently published a case study on how to choose an AJAX framework, taken from T. A development team at Rowe Price. The team assesses several popular Ajax frameworks that are available in their next-generation applications:
Ajax access. Do or. JSP, etc. see more, today see the access to XML files.
var url = "Myxml.xml"; URL points to an XML file pathCreatexmlhttprequest ();Xmlhttpreq.onreadystatechange = ProcessResponse;Xmlhttpreq.open ("Get", url,true);Xmlhttpreq.send
Jquery
1. What is JQuery??
JQuery is an excellent JavaScript framework, a lightweight JavaScript class library.
The core idea of JQuery is Write less,do more.
Use JQuery to be compatible with various browsers to easily handle HTML, Events, animation
Ajax technology in Web development is one of the most common development technology, because of some of the outstanding characteristics of the majority of programmers to become a priority to use one of the technologies. Ajax can be locally refreshed
··········· Because the case is done using MVC, the code directly attached to it is the same principle, whether it's aspx, ashx, or WebService.
Html:
@{Layout = null;}Index
Controller:
Using System;Using System.Collections.Generic;Using System.
first the code.
function SubmitData () {
var xhr = createxhr (); Creates a Xhr object.
Xhr.onreadystatechange = function () {
if (xhr.readystate = = 4) {//ensures that all response data has been obtained
if ((Xhr.status >= 200&&xhr.status
alert
The previous blog introduced the Ajax Get and post methods as well as the upload file progress bar show, this blog will introduce a simple login and registration function of the implementation design HTML
This is going to be my graduation design
Get&post: Get
: (1) suitable for the power of the request (the so-called power is that multiple requests to return the same result), (2) Append data to the URL sent, the browser and the server will limit the length of the URL, so get request sent a
Ajaxgold is also a very short and useful AJAX framework that provides four methods for developers to invoke, respectively, Getdatareturntext (Url,callback); Getdatareturnxml (Url,callback); Postdatareturntext (Url,data,callback); Postdatareturnxml
First, the steps and methods of constructing the Spring MVC program using MAVEN and IntelliJ:
1. Use the following command to create a web app named Counterwebapp.
MVN
jquery is a fast, concise JavaScript framework. The purpose of jquery design is "write Less,do more", which advocates writing less code and doing more things. It encapsulates
JavaScript's common feature Code provides a simple JavaScript design
The morning of the page to pass the value of the Chinese characters, the data has not gone through. Later colleagues to help solve, in controller layer plus @responsebody
@ResponseBody indicates that the return result of the method is written
Ajax.html
User name: Password:
check.php
XMLHttpRequest status = 0 issue.Xmlhttp.readystate =4 The time, has been xmlhttp.status. = 200. Then the output, found in the Xmlhttp.status=0,http protocol but not the status code.
first need to import jquery.js Baidu jquery into the official website download on the line note to be placed under the Web-inf
Front-end code:
pageencoding= "UTF-8"%>insert title here Please enter two strings First:Second:button//Submit
Ajax02.html
Client
demo start
ajax02.php
Server-side
// I am the headline of a news
// I am a headline of a news
// I am a headline of a news
// I am a headline of the news
// I am a headline of the news
jquery is really a very good lightweight JS framework that can help us to develop JS applications quickly and to some extent change the way we write JavaScript code.
Talk less, go straight to the point, we first look at some simple methods, these
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