• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 6. Advanced JavaScript > Project II: Searchable Designer Database

Project II: Searchable Designer Database

Now that we've knocked off the first of the two projects that we wanted to tackle, it's time to take a look at the other one. The idea behind this project is that Stitch, being the top-notch fashion magazine that it is, has information on all of the top designers in the world. It would be great if we had some way to get that information to our readers, who are constantly asking for more information on their favorite designers. The idea came up of creating a page on the site where a user could go to search for information on designers. When the idea was originally conceived, the thought was to store all of the information in a database and write the search functionality in a language like PHP or Cold Fusion. This, unfortunately, has proved to be quite out of the price range that the powers that be are comfortable with, and this is the main reason the project has been kicking around for so long; no one has figured out a way to do it cheaply. After thinking about the problem for a bit, you've decided that you could probably pull off a version of the project using just JavaScript. The idea is to create a page where users select from several criteria and, with each selection, narrow down the list of designers to a point where the user can find the designer he or she is looking for. This wouldn't allow for the full-blown functionality of the original ideal, but hey, the price tag is certainly right. So after running the idea up the ladder and getting approval to work on the project, it's time to figure out exactly what we can accomplish.

Functional Specification

Since this project is going to be a little complicated, we're going to take time to plan out exactly what we want to happen before we start coding. It's tempting to skip this step and just jump into the code, but control yourself. Thinking through the project before you start will always save you time and usually results in a better end product. Let's first take a look at the data and choose the different criteria we might want the user to be able to sort the designers by.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint