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]

Sr. Web Developer
mediabistro.com
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume
Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?


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, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business

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

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