Prev | Current Page 27 | Next

Larry Ullman

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


The fi nal section applies to any block with an id value of results. You??™ll use
this when adding the Ajax layer in the next chapter.
Save this fi le as style.css and place it in the same directory on your Web
server as every other fi le.
browsing employees 19
??¦
Employees by Department



??¦
use the style sheet
For the style sheet to be used, it must be referenced in the HTML and
PHP pages. Do so by adding a line to the section of both fi les:
The style sheet is mostly
cosmetic. The non-Ajax
layer will work perfectly
fi ne without it, but it won??™t
look as nice.
20 browsing employees
test the pages
1 Load the HTML page in your Web
browser to test what we??™ve created so far.
The address must begin with http:// for
this to work. (See extra bits on page 24.)
2 Select a department and click GO.
3 The PHP page
should show the
results.
browsing employees 21
create an HTML page p. 13
??? HTML, JavaScript, CSS, and
PHP can be written in nearly
any application. I prefer to use
a simple text editor (specifi -
cally, BBEdit on Mac OS X), but
use what you like.


Pages:
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39