Introduction / The Sample Application: "Where's Tom?"
Subtitles of the Movie
Our sample project for this training is an application called "Where's Tom". This application was developed to showcase the ease of creating a web service using Cold Fusion MX and Components. Tom is a fast moving guy. He gets around more than most people. And he is notoriously difficult to locate when he's needed. Rather than secretly attach a global Tom locator to his person, we decided to create an application to answer the perpetual question "Where's Tom". Tom helps us out a little with this. He uses a password protected admin area to enter his schedule. If locations are needed or other users are necessary Tom adds them. The admin area uses components built around the data structure of "Where's Tom" application invoked in Cold Fusion templates set up in a modified rather developing methodology. Once Tom's schedule is entered anyone can find out where Tom is just by visiting the site. If a user wants to check his schedule for earlier in the week, they can try to decipher the odd week day listing for "THAT WAS THEN". This lets a user check Tom's schedule in the future too, by the way, but that's not a documented feature. That was then uses a block of cf script written to filter out the current day of the week and then build an array of this day two weeks prior and two weeks after. The array is displayed with links on days where Tom has entered an activity but the user can't generally tell. If someone wants to cut to the chase and find out where Tom is right this second, a click on "THIS IS NOW" shows the answer. Some of Tom's locations have cameras, very discrete of course. And if a camera is where Tom is, users can click the "VIEW" link to see Tom's location. And then click the arrows to change the aim of the view. "THIS IS NOW" invokes a search activities method on a activity.cfc object and the view functionality uses multiple instances of a camera object passing in different aim parameters based on URL variables. For all activities Tom could use a little help. Couldn't we all? So a click on the "SUPPLIES" link allows users to enter a word or phrase describing something to help Tom, and then search the entire amazon.com database. The supplies functionality invokes the Amazon's web service with the keyword search and returns the first ten results. Those results are then parsed through and displayed using the Where's Tom style conventions. This area also demonstrates inheritance, packaging and polymorphism using meal components that pass food in to Tom Since all supplies are not office supplies. If seeing Tom just isn't enough, users can also click on the "FEEL THE LOVE" link to send an email to Tom. "FEEL THE LOVE" demonstrates using a form submission to a cf component And it turns out that finding Tom was such a popular occupation, other sites would like to utilize the functionality. So we publish the "Where's Tom" web service using Cold Fusion's built in web services functionality, Then display two different kinds of information returned on two site pages. Any time of the day or night, any application, can display exactly where Tom is. Our sample application will give you a broad understanding of how Cold Fusion MX can be used with components to create modular application functions and web services. As a side benefit, it will also allow you to know where Tom is at any point in your day. cation functions and web services. As a side benefit, it will also allow you to know where Tom is at any point in your day.
Tutorial Information
| Course: | Macromedia ColdFusion MX |
| Author: | Darcey Spears |
| SKU: | 33474 |
| ISBN: | 1932072772 |
| Release Date: | 2004-03-05 |
| Duration: | 6.5 hrs / 102 lessons |
| Work Files: |
Yes |
| Captions: | For Online University members only |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |
VTC Sign up & Benefits
- Unlimited Access
- 81,350 Video Tutorials (20,800 free)
- Video Available as Flash or QuickTime
- Over 782 Courses
- $30 for One Month Access
- Multi-User Discounts Available
United States 