spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / programming / hra / 1 To page 1To page 2current pageTo page 4
[previous] [next]

Senior Lotus Notes Developer
AMS Staffing Solutions
US-MD-Baltimore

Justtechjobs.com Post A Job | Post A Resume
Developer News
Google Chrome Playing Catch-Up on Extensions
Open Solutions Alliance Gets New Leadership
Red Hat Spacewalk Expands Linux Management

Web Design with Ajax

Reworking the Boards ‘R’ Us report

Let’s use Ajax to revamp Katie’s web report. With Ajax, we can get rid of all those page reloads, and cut down on how much data the server has to send to the report. Here’s what you’re going to do in the rest of this chapter:

(1) Create a new object to make requests to the server

First, you’ll need a JavaScript function to create an object that will let you make requests to the server, and get a response back. Let’s call this new function createRequest().

(2) Write a JavaScript function to request new board sales totals

Next, you’ll use the object you just created in Step 1 to make a request to the web server. We can put this code in another function, called getBoardsSold(), and run it when Katie clicks the “Show Me the Money” button.

(3) Update Katie's report with new numbers using JavaScript

Now you can update the report with the current number of boards sold, and figure out how much cash Katie's made. Let's take care of this with another new JavaScript function that we’ll write; we’ll call this function updatePage().

home / programming / hra / 1 To page 1To page 2current pageTo page 4
[previous] [next]

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

webref The latest from WebReference.com Browse >
Popular JavaScript Framework Libraries: An Overview - Part 3 · Accessing Your MySQL Database from the Web with PHP · Working with the DOM Stylesheets Collection
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
MS Access and MySQL · Cisco AutoQoS: VoIP QoS for Mere Mortals · While VoIP Adoption Explodes in Enterprise, Carrier Spending Lags

Created: March 27, 2003
Revised: May 08, 2006

URL: http://webreference.com/programming/hra/1