Prev | Current Page 32 | Next

Larry Ullman

"Building a Web Site with Ajax: Visual QuickProject Guide"

If you have problems
getting these pages to work,
see the book??™s Web site at
www.dmcinsights.com/ajax/,
for assistance.
(cont.)
24 browsing employees
In the previous chapter, we created the non-Ajax parts of the employee browsing
pages. Although the focus in this book is on Ajax, it??™s very important to
have working, non-Ajax components in place for those who can??™t take advantage
of the lovely Ajax interface. In this chapter we??™ll place the Ajax layer on
top of the existing one.
The Ajax components consist of three fi les: one JavaScript fi le that will provide
all-purpose, browser-safe Ajax functionality; another JavaScript
fi le that will provide page-specifi c functionality; and one PHP script that
will handle the server-side needs of the Ajax layer. To make these additions
active, the main HTML form will be slightly modifi ed as a last step.
3. browsing using Ajax
25
what we??™ll do
1 First, on pages 27-28, we??™ll create a JavaScript fi le that makes a browserspecifi
c supported Ajax object. That object will be used by any page requiring
Ajax functionality.
2 On pages 29-31, a second JavaScript fi le that defi nes the functionality
specifi c to the employee-browsing aspect of the example will be started.


Pages:
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44