AJAX Tutorials

1. A complete sample program in AJAX

By: Ram Baskar : 2022年11月28日

Description: Here is a complete AJAX example with a simple HTTP request. Our JavaScript will request an HTML document, test.html, which contains the text "I'm a test." and then we'll alert() the contents of thetest.html file.

(追記) (追記ここまで)

2. How to Make an HTTP Request in AJAX

By: Ram Baskar : 2022年08月01日

Description: In order to make an HTTP request to the server using JavaScript, you need an instance of a class that provides you this functionality. Such a class was originally introduced in Internet Explorer as an ActiveX object, called XMLHTTP. Then Mozilla, Safari and other browsers followed, implementing an XMLHttpRequest class that supports the methods and properties of Microsoft's original ActiveX object.


3. Handling the Server Response in AJAX

By: Ram Baskar : 2010年11月28日

Description: Remember that when you send the request, you provide the name of a JavaScript function that is designed to handle the response. eg:

(追記) (追記ここまで)

4. XML vs JSON in AJAX

By: Emiley J. : 2009年01月17日

Description: If you are working with AJAX, you probably use either one of them or both of them. However there are pros and cons of using each of them. One major drawback of using XML is the speed. XML requires two tags for every data point. These additional data in transmission between the server and the client slows down the data exchange and wastes bandwidth.


5. Creating JSON objects using Java in AJAX

By: Emiley J. : 2009年01月17日

Description: To build the JSON object programmatically in Java, you can keep it simple by just constructing a StringBuffer by appending the values or you can use the JSONObject provided by json.org to construct the JSON object easily.

(追記) (追記ここまで)

6. The History of AJAX

By: Emiley J : 2007年09月04日

Description: In the beginning, there was the World Wide Web. Compared with desktop applications, web applications were slow and clunky. People liked web applications anyway because they were conveniently available from anywhere, on any computer that had a browser. Then Microsoft created XMLHttpRequest in Internet Explorer 5, which let browser-side JavaScript communicate with the web server in the background without requiring the browser to display a new web page. That made it possible to develop more fluid and responsive web applications. Mozilla soon implemented XMLHttpRequest in its browsers, as did Apple (in the Safari browser) and Opera.


7. To use or not to use AJAX

By: Emiley J : 2007年09月04日

Description: When you use Ajax techniques to update portions of a web page, the user gains responsiveness and fluidity. However, the user also loses the ability to bookmark and to use the browser's back button. Both of these drawbacks stem from the same fact: the URL does not change because the browser has not loaded a new page.

(追記) (追記ここまで)

© 2023 Java-samples.com

Tutorial Archive: Data Science React Native Android AJAX ASP.net C C++ C# Cocoa Cloud Computing EJB Errors Java Certification Interview iPhone Javascript JSF JSP Java Beans J2ME JDBC Linux Mac OS X MySQL Perl PHP Python Ruby SAP VB.net EJB Struts Trends WebServices XML Office 365 Hibernate

Latest Tutorials on: Data Science React Native Android AJAX ASP.net C Cocoa C++ C# EJB Errors Java Certification Interview iPhone Javascript JSF JSP Java Beans J2ME JDBC Linux Mac OS X MySQL Perl PHP Python Ruby SAP VB.net EJB Struts Cloud Computing WebServices XML Office 365 Hibernate

AltStyle によって変換されたページ (->オリジナル) /