Learning ......
First look for a few articles, slowly chew: http://developer.apple.com/internet/webcontent/xmlhttpreq.html
Http://www.xml.com/pub/a/2005/02/09/xml-http-request.html
Write something immature:
XMLHttpRequest is a new object introduced by Microsoft in ie5 for the first time. It can send a request to the Web server to obtain response data. Unlike the previous steps of refreshing the entire page to retrieve data, we can use it to continuously obtain server-side data without refreshing new pages, and then use JavaScript to process the obtained data. Of course, there are a lot of benefits: Unnecessary data no longer needs to be downloaded, such as menus, logos, etc., to save network resources; the page does not flash, and it feels more comfortable; requests are only required by the client, reducing the burden on the server.
Such a request can continue the following code without waiting for a response. It monitors the status of data obtained through events, that is, asynchronous. In this way, the browser will not wait until the requested data arrives, just as it is dead, greatly improving the user interface.
Creative applications: Google suggest Google Maps
I think it is good to use this chat room. In addition, this method can be used to solve huge dynamic menus. He can even be used for card and board games.
With this magic weapon, we can broaden our mindset when writing web applications. There is another weapon. As long as there is enough creativity, there are still many things to do. Because of this, many foreign developers have made a lot of in-depth exploration by taking XMLHttpRequest as the core and using Asynchronous JavaScript + CSS + DOM + XMLHttpRequest technology (called Ajax.
Here is an example. You just need to undo it and put it on the Web server. Be sure not to open it locally.
Here is a Chinese article, mainly for translation. If it is difficult to read English, reading is quite time-saving. /Files/hsxixi/ajax .rar.
Let's take a look at Microsoft's Ajax action: http://beta.asp.net/default.aspx? Tabindex = 7 & Tabid = 47. Microsoft launched the Atlas toolkit.
I think the reason why Ajax is so popular is that he has changed our thinking model and the client web page can also be written like this.
Some pre-read connections: http://www.modernmethod.com/sajax/index.phtml
Http://beta.asp.net/default.aspx? Tabindex = 7 & Tabid = 47
Http://msdn.microsoft.com/asp.net/future/default.aspx
Http://weblogs.asp.net/mschwarz/archive/2005/04/07/397504.aspx