I made a provincial/municipal drop-down menu yesterday, and I always felt that the page refresh was quite uncomfortable. If the page data and images increased, wouldn't it be slower? I decided to try out the popular Ajax technology today. After
Many people use the 'msxml2. xmlhttp' object to call remote data.
I disagree,.This depends on whether the user has installed the MSXML component,In addition, the page may be stuck when calling data ";
To avoid these situations, we recommend
1. Both are implemented using XML technology,
2. Both use the HTTP protocol.
3. Both implement data exchange between different development languages on different platforms
But there are many differences between the two.1. WebServices is a
You can use the $. Get method of jquery to initiate Ajax requests in get mode. $. Get is a utility function of jquery.
Get method syntax
$. Get (URL, parameters, callback)
Parameters
URL
(String) The
The feature of my error here is: Put A gridview in updatepanle and use a timer to update the data in the gridview. Error 12029 is often reported on the page. The specific error is as follows:
SYS. webforms. pagerequestmanagerservererrorexception:
Function Test (){$. Ajax ({// Type of submitted data: Post getType: "Post ",// Submitted URLURL: "testlogin. aspx ",// Submitted dataData: {name: "sanmao", password: "sanmaoword "},// Format of returned dataDatatype: "html", // "XML", "html",
Ajax value transfer (three layers ):
1. Write in front-end page js to obtain the page data, pass the value to. CS, and return the value to determine whether the page is successful.
Code:
1 Script Language = "JavaScript" > 2 VaR
Some time ago, I had a hard time uploading files through Ajax. It is certainly no problem to directly upload text information using $. Post. However, direct upload of images through $. Post is not feasible.
Later, I saw some solutions on the
var Ajax = function (o) {/* * @ O. URL request URL * @ O. method set to post or get * @ O. async set async or not * @ O. data parameters to be sending * @ O. success callback function for success * @ O. fail callback function for fail * @ O.
Validatorcalloutextender this control is used to extend the verification control and to style and emphasize error prompts of the verification control. Here is an example: 1) Create an ASP. NET Ajax-enabled web project in vs2005 and name it
Updateprogress is very simple to use, but it is very useful. The following describes how to use updateprogress first:
. Add an updatepanel to the page and put a label and a button in it. Add an updateprogress control and set its
Jquery ajaxsubmit can be used to partially refresh the page Div for Ajax submitted forms (it can be used to refresh JSP tables !)
Need to introduce: jquery-form.js
Instructions for use:
Java code
$ (Document). Ready (function (){
VaR
When SpringSecurity is used for security control, in addition to the normal request URL Security Interception Based on the browser address bar, the return value cannot be processed when AJAX calls a request blocked by the permission. According to
The $. ajax method of Jquery can be called by ajax. You need to set url, post, parameters, and so on.
If you need to write a lot of code to submit an existing Form, why not directly transfer the Form submission to ajax.
Previous Handling Methods
The
Today, almost all projects are submitted through ajax. During the test, I found that the data obtained after each submission is the same. debugging can eliminate the background code issue, so the problem must be at the front-end. Each time the cache
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