I didn't plan to put this source code on. After all, it has been a long time and has never been improved. However, I found that many netizens asked me for this
CodeI am a lazy guy. I don't want to send emails one by one, so I just moved to my blog.
Ajax Technical Resource Center
Web ApplicationsProgramIt is possible to achieve cross-internet interaction, but have your users complained about the pain of waiting for the page to refresh? Now, it's time to combine your skills and create a rich
The returned data of Ajax calls will be cached, and static html is called. Even if HTML is modified, ie may display it with the original data. Firefox can display new data normally.
Solution:
In prototype get, Set
Pars = "Mod = readarticle &
Start to study Ajax. Day 1 First, I am not suitable for learningProgramPeople do not like it either, because I am very careless and every time I write a lot of errorsCode. But out of love for Dom, JS, and CSS, I began to study Ajax. What Is Ajax?
Blocked Ajax requests
Let's verify the request blocking first. We use the followingCode:
Initiate three consecutive requests Function simplerequest ()
{
VaR request = new XMLHttpRequest ();
Request. Open ("Post", "script. ashx ");
Request.
One afternoon of study, the first challenge was Ajax cross-Origin data submission, which can be solved using Web Proxy. a.htm on http: // 192.168.8.htm
Code :
Web. asp is an ASP proxy.
You can directly access http: // 192.168.8.108/a.htm to
Function createobj (){
If (window. activexobject ){
Return (New activexobject ("Microsoft. XMLHTTP "));
}
Else if (window. XMLHttpRequest ){
Return (New XMLHttpRequest ());
}
}
function personalinfo () { var obao = createobj (); var cont =
Implementation:
With the above two sentences, each text box with a name will have five more attributes:
1. Action is required. Accept the data submitted in get mode, and return the dynamic page of the related Javascript array.
2. If capture
Create a navigation menu for product classification based on the customer's needs, which was previously read recursively using ASP. It is slow and consumes a lot of server resources. Simply change it to AJAX + XML. Share it with you. I hope you can
You have used your own AJAX mechanism in the CommunityServer without using other auxiliary controls. The customer's XMLHttpRequest object encapsulation is sufficient for users to run AJAX in general browsers. Next, let's learn this story, hoping to
Recently, I just tried to select an Ajax library to collect the information and test it. My test is very simple. I directly watched the Online demo page speed on their website, if the speed is slow, it will be eliminated!
Auxiliary
First we will use Ajax. NET Professional today, you can get relevant information about AJAX. NET from http://www.schwarz-interactive.de. You also need to know about XML data island.
Next we will look at a simple binding example:
Step 1 determine
Var xmlHttp;UName () // when the user name loses focus{If (all. uname. = ""){All. l1.innerHTML = "cannot be blank! ";SetTimeout ("close (1)", 1500 );Return;}Else{XmlHttp = new ActiveXObject ("Microsoft. XMLHTTP ");XmlHttp. onreadystatechange = deal;
'----------------------------------------------------------------------'Keep this declaration information during forwarding. This declaration does not affect your speed!******************* Tianfeng AJAX Weather Forecast System V1.0 *************** **
If you are not familiar with AJAX, take a look at this tutorial:Top AJAX experience.
Nowadays, blogs are very popular. I believe that anyone who needs to spend a little time surfing the internet will have a blog here or there. Some friends with
Ajax.htmlCopy codeThe Code is as follows: 1: Show "OK"; other characters: Show "Error" detect T. aspCopy codeThe Code is as follows:Response. ContentType = "text/xml"Response. charset = "gb2312"If request. querystring ("t1") = "1" thenResponse.
Http://www.dragonson.com/doc/ajax.htmlAjax internal communication document
Http://info96.k12studio.com /~ Nio/comments. php? Id = 242_0_1_0_CBriefly describe Ajax
Http://www.adaptivepath.com/publications/essays/archives/000385.phpAjax: A New
After reading this ajax example tutorial, I believe that you can easily make a basic AJAX application.You can also directly access: http://www.jb51.net/codes/57017.html to download the ajax tutorial source code example.Well, next we will start to
We are all very familiar with tables. Today's CSS makes the layout of tables more and more brilliant. However, in any case, it cannot conceal the rigidity of those packages.So how can we make those rigid data more readable and available, and make
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