In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article is to share with you a brief introduction to Ajax. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
I am glad that you have come to read my example tutorial on ajax, whether you are a first time or an old friend. I will present here what I have learned so far, and I am not stingy.
About ajax, what is ajax?
Important: ajax is not a language, but a combination of technologies. Ajax is just a synonym for the combination of these technologies.
There are many tutorials on the Internet that explain ajax: Asynchronous JavaScript And XML in Chinese that is: asynchronous JavaScript and XML
I think this explanation is very general and will confuse the novice. I'd like to add to the above explanation, as my ajax development experience tells me. Using javascript to create XMLHTTPRequest objects, xmlhttp can be used as asynchronous request xml as the data transmission format between client and server. When the server returns the requested data, it uses javascript to analyze the returned xml. Finally, the dom document object model is used to display the data returned by these requests. This should be the most standard way to use ajax.
What is an ajax asynchronous request? Generally speaking, when you send a server request, the current page will not flicker or refresh. The request ran quietly in the rear. And other operations on the current page are not affected before the data is requested to be returned.
Ajax is considered as a rich client technology with good user experience, which means to reduce the consumption of server resources and increase the client's good user experience. This really excites every web developer and user, which is why ajax is so popular all over the world to lead the fashion of web development!
The core of ajax
From my personal point of view, I have not discussed and studied it with anyone. Now everyone knows that ajax is a combination of many technologies. But I think his core is the target of xmlhttp.
Why do you say this, because xmlhttp objects implement asynchronous requests and transmissions. Javascript and dom only revolve around this asynchronous function to change the page display without refreshing or reloading.
What is xmlhttp?
Xmlhttp is so important, what on earth is xmlhttp? XmlHttp is a set of API interfaces that can transmit and receive XML and other data through http protocol in scripting languages such as JavaScript,Vbscript,Jscript.
Explanation from Msdn: xmlhttp provides a protocol for the client to communicate with the http server. The client can send a request to the http server through the xmlhttp object (MSXML2.XMLHTTP.3.0) and process the response using the Microsoft XML document object model Dom.
How to learn how to use xmlhttp objects, please refer to the xmlhttp manual on the left. I can only tell you that if you know something about JavaScript, it only takes 10 minutes to learn xmlhttp!
How to learn ajax Technology well
How to learn ajax, what kind of foundation should you have? I am worried about telling you the truth, html,css,dom,javascript,xml you have to have a basic understanding, fortunately not a lot, css can skip, the result is to make your page ugly, and does not affect the function. Oh, don't worry, I have never systematically studied html or css. Just check the manual if you can't read it.
I have to tell you seriously, 1: you should at least be able to use the basic syntax of javascript .2: if you want to create the effects of desktop applications in a browser, you should be proficient in dom.
Thank you for reading! This is the end of this article on "introduction to Ajax". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.