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]

Subject Matter Expert - Managed Services (TX)
Next Step Systems
US-TX-Dallas

Justtechjobs.com Post A Job | Post A Resume
Developer News
OpenOffice 3.2 Lands Amid Critical Changes
Red Hat, IBM Firmly in KVM Virtualization Camp
Red Hat Talks Up Open Source Cloud Plans


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]


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

webref The latest from WebReference.com Browse >
Search Engine Optimization: Selecting and Embedding Keywords · Are Google's Language Translation Web Services Ready for Prime Time? · Installing and Using Meeplace, the Business Review CMS
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
IBM DB2 10 for z/OS: Justifying the Upgrade · Living La Vida Colo: Choosing the Right Colocation Facility · FTC Concerns over Social Media Privacy Linger

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

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