In this project you will extend your work on Project #6 by implementing a search mechanism for photos. Here is a rough description of the new feature:
pics/allUsers
)
should contain an entry where users can type a search string.
pics/user
). If the
user has a large photo collection, make sure that the selected
photo is visible.
To get started, copy the directory tree for Project #6 to a new
directory named project7
. Do all of your work for this
project in the new directory.
The remaining details of the design and implementation are up to you, except for the following requirements:
observe_field
; you must write Javascript code that
creates XMLHttpPRequest objects and responds to their events (we
want you to learn about the low-level details of Ajax).
README
in the top-level
directory of your solution that describes the way(s) in which you have
created reusable components.
form_authenticity_token
will return the value of the token for this session; you must arrange for
this value to be included in all Ajax requests as the value of the
authenticity_token
parameter.encodeURIComponent
useful: this method will perform URL encoding on the name or value for
a query value.
Use the standard class submission mechanism
to submit the entire project7
directory. Don't forget to
include the README
file describing your approach to
reusability. As always, your HTML files should pass XHTML validation.