Exercise : Petit (by Stefanie Hatcher)

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. Add the JavaScript event-handling and Ajax code. (sample solution)

expected output

Exercise , Part 1

All required files are on Webster (see directory). Breeds are located in the subdirectory breeds/ .

<breeds>
	<breed>Alaskan Malamute</breed>
	<breed>Beagle</breed>
	...
</breeds>

Exercise , continued

Exercise Solution

You can view the solution javascript here.

If you finish the basic exercise, try adding more features to the page, such as: