In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
Editor to share with you how to use AJAXRequest for AJAX application development, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Prepare for
Before using AJAXRequest for AJAX development, you need to make the following preparations:
Preparation knowledge: basic JavaScript syntax, knowledge of the document object Model (DOM), and at least one background programming language (ASP is the programming language for my examples).
Preparation tools: EditPlus or other text editor (Dreamweaver or Visual Web Developer is also available), and Web server for local testing (IIS or Apache or NetBox or whatever).
Download the AJAXRequest class: you can download the latest version of the AJAXRequest class at http://www.xujiwei.cn/works/ajaxrequest/.
To develop AJAX, you need to understand JS programming, which is the need of J in AJAX, as well as background programming, which requires dynamic processing on the server side, and DOM is used to process information and present the results to the user. In terms of tools, the text editor can choose what you like, and I prefer to use EditPlus.
As for the Web server for testing, it depends on the background programming language you use, such as ASP or ASP.NET is IIS,PHP, you can choose Apache and so on. Another option for running ASP is NetBox, but NetBox does not support UTF-8 very well. If non-English output is not involved, consider choosing this lightweight server software.
As for why to set up a test server locally instead of running it directly in a browser, it is because developing in an environment close to the server from the beginning can reduce a lot of inexplicable errors in the later development process.
Start
In the examples of later tutorials, I will write JS code separately from XHTML code, where the Ajax request class file ajaxrequest.js is placed in the same directory as the example code.
Hello,World!
According to convention, with a "Hello,World!" Here we go.
Helloworld.htm
Program code:
The copy code is as follows:
Hello,World!
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.