Home > Articles > Programming > Java

  • Print
  • + Share This
Like this article? We recommend

Like this article? We recommend

Getting Started

To follow along with the examples, you’ll need to download the source files. (You can also view a live sample.) This article uses an AJAX engine that I created in order to abstract our AJAX requests and help us to share AJAX engine code between different applications. In order to use this engine, we simply import three JavaScript files and make requests to an object named AjaxUpdater. The engine will handle the rest, including delegating the response to the callback method specified in the request. Here’s an example of how we’ll make requests with this engine as well as import the associated files:

<script type="text/javascript" src="javascript/model/Ajax.js"></script>
<script type="text/javascript" src="javascript/model/HTTP.js"></script>
<script type="text/javascript" src="javascript/model/AjaxUpdater.js"></script>
<script type="text/javascript">
    document.load = AjaxUpdater.Update(’GET’, URL, callback);

Clearly, it’s fairly simple to import the JavaScript objects and make a request using this engine. Let’s get started by creating the passwords for our requests.

  • + Share This
  • 🔖 Save To Your Account