Performance
If you use Chrome or Firefox and other browsers to visit this blog, github.com, plus.google.com and other sites, careful you will find that the page between the clicks are asynchronous request through Ajax, and the page URL has changed.
Copy Code code as follows:
/**//*
Asynchronous Request Class
Author: I am not intentional
Date Created: 2009.2
--------------------------------------------------------------------------------------------------------------- ----------------
Can not use the top of the database, later found in such a way to achieve ... Here is a summary of this method to write a page. Friends who are interested can study together ....
Foreground code:
Copy Code code as follows:
ajax
Find some resources on the Internet to understand this is a coding problem, my server sent over the data is GB2312 encoded, and Ajax to receive the data as UTF-8 encoded.Many of the online solutions are server-side based on PHP, JSP, and so on, to
Realize:
With the above two sentences, each named text box will have five more attributes:
1.action must be. Accepts data submitted by Get method and returns a dynamic page of related Javascript arrays.
2.capture if more than one column of results
Google's map is done with Ajax, but Google does not support Ajax, most search engines do not support, so if you use Ajax to do the site, the ranking of the site, the flow can be imagined, although the search engine development may support later, but
Copy Code code as follows:
ajax test
Stock code
Stock name
Current price
Today opening
Yesterday closing
Current price difference
Degree
Highest price
Lowest price
First I think of the CS in the Ajaxmanager, I just simplify it, remove unwanted and many more suitable for our habits of some methods.
I named him ajaxlite, because he only needs two classes to achieve AJAX functionality, in order to put the JS file
The idea is to return the Boolean value of the Ajax pass at the time of submission. In fact, Ajax-passed function Get2 () is a child function of Chkfull (BT) and cannot be passed to an external function, alert () does not work. So simply cancel the
In Web script programming, you should use asynchronous mode in most cases; synchronization mode will suspend the current scripting engine, so when you use sync mode, you should know what you want. In C + + development, synchronization mode should be
Verify from the Username user table in the database my:
Checkusername.html:
Copy Code code as follows:
Untitled Document
Name:
check_it.php:
Copy Code code as follows:
$username
The effect is as follows:
Copy Code code as follows:
ajax Progress bar
ajax Progress Bar example
Launch long-running Process:
Copy Code code as follows:
Using the above method can really achieve Ajax paging effect, but I always feel not concise enough to study the afternoon, finally a little something O_o
first create the foreground page myajaxpager.aspx
Copy Code code as follows:
First, add a ScriptManager control to the page.
Second, the registration namespace:
Type.registerNamespace ("Demo");
Add constructors, properties, methods to the class.
Demo.sample=function () {}
Iv. Registration
To the B/s development era, the page front-end layout also the tab page layout form absorbed over. In particular, combined with Ajax technology, you can more fully play the tab page of good performance and data caching advantages, is a good form of
The load () method is the simplest and most commonly used Ajax method in jquery to load remote HTML code and insert it into the DOM. Its grammatical structure is:
Load (URL [, data][, Callback])
The load () method parameter is explained in the
Small try Ajax, feel more concise than prototype, in jquery, Ajax has three ways to implement: $.ajax (), $.post,$.get ().
XHTML (Main):
Enter Name:
input Age:
Enter Gender:
input work:
Submit
post submit
get submit
Js:
1, the
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.