8
Chapter 1
Ajax to the rescue
Do you see what the problem is? Every time Katie wants to nd out the
latest number of boards sold, the entire screen is redrawn, and she’s left
with the Internet version of snow blindness.
Didn’t you say that Ajax will let
me update the screen without all
that reloading? Something about
updating just part of the page?
Use Ajax to fix the web report...
Let’s change Katie’s report to use Ajax to send the request
for updated board sales. Then we can get the response from
the server, and update the web page using JavaScript and
dynamic HTML. No more page reloading, and Katie will be
a happy snowboarder again.
Maybe you’ll even score a
free board...
ditching page reloads