University of Washington, CSE 190 M
Section 7: Pet-It (Ajax)

section idea/code by Stefanie Hatcher; revised by Marty Stepp

Today we will write a page "Pet-It" that shows information about breeds of cats and dogs using Ajax. The HTML and CSS are already written; start from the following skeleton:

Add the JavaScript event-handling and Ajax code. Click the following image to run our sample solution, written by TA Stefanie Hatcher: (solution JS code petit.js)

expected output

All required files are on Webster in the directory http://webster.cs.washington.edu/cse190m/sections/7/, or you can download them as section7.zip. Breeds are located in the subdirectory breeds/ relative to the previous URL.

References: Ajax.Request, Ajax.Updater, Ajax options, JSLint

Valid XHTML 1.1 Valid CSS!