I have been depressed by Dom operations in Ajax for several days. Today I finally understand that self-learning is bitter, and a bitter snot makes a tear,
Give me some lessons and wake up later.
1. Do not mix XML operations in the Dom with those
CopyCode The Code is as follows: // check whether the user name is occupied
Function Geto (){
VaR Ajax = false;
Try {
Ajax = new activexobject ("msxml2.xmlhttp ");
} Catch (e ){
Try {
Ajax = new activexobject ("Microsoft. XMLHTTP ");
} Catch (e
The refreshing mechanism of Ajax enables real-time display of Registration Name detection in the registration system.
Common User Registration is the user input user name, BackgroundProgramCheck whether the user name in the database is repeated
First Ajax experience
Ajax is a hot thing in the past two years, and I have also joined in the fun. I went to some tutorials the other day to learn about it. Next I will write my own things according to the entire process. However, because it is a
After reading the cascade menu made by Daxia, I also made an axe to the class. Hey, it took some time to paste a cascade menu. In this example, the member name is automatically displayed as long as you select the member category name:
First, create
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
The ajax. js in Prototype provides a very useful ajax framework. Generally, you can simply call the following code in an application.
New Ajax. Request (Url, {method: "get ",OnSuccess: showFilter,OnFailure: function (request) {alert ("Server error !"
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
In fact, the title is just a gimmick. I just want to talk about how Javascript and Actionscript operate XML.
I hope to help some friends who only use Javascript or only understand Actionscript and understand the similarities and differences between
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
Http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd>
this is test
ajax-based rss reading example
Enter an RSS address: Src = http://www.nice.or.jp /~ Mosmos/free/f105.swf width = 200 height = 200Type = application/x-shockwave-flash;
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;
Main functions:Copy codeThe Code is as follows:Function getObject (objectId ){If (document. getElementById & document. getElementById (objectId )){// W3C DOMReturn document. getElementById (objectId );}Else if (document. all & document. all
This is another application of XMLHTTP following "retrieving data without refreshing XMLHTTP.XMLHTTP. can be said to be a good combination of clients and servers.Using XMLHTTP. We can implement many good ideas.In this article, two-level dynamic
Ajax Chinese garbled characters often occur in Chinese. In fact, ajax Chinese garbled characters will not occur as long as you pay attention to them. Note that the front-end and back-end encoding are consistent. you are using Chinese. while ajax
When jquery ajax is used to call a page, errors always occur.The js Code is as follows:Copy codeThe Code is as follows:$. Ajax ({Type: 'post ',Url: 'testdata. aspx ',Data :{Language_type: 'cn '},DataType: 'json ',Success: function (data ){Alert ('OK
Ajax principles: The client sends asynchronous requests through the built-in object XMLHttpRequest in the browser. When the server returns an response, it calls the previously registered callback function. In the callback function, you can use
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