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]

Data Center Architect
The Computer Merchant, Ltd
US-MA-chelsea

Justtechjobs.com Post A Job | Post A Resume
Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs


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.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

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

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint

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

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