Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com�s entire library of video tutorials.
What I've done now is a little bit of a cleanup. I've gotten rid of the old park region and park detail so that now, the only things that I have are things that are used. If I come here to the inspector for spec layouts, you can see I have the region level which is that top level menu, then the northeastRegion which is that second level menu and here I go into the detail for the selected park in the northeastRegion. So, I've got my multilevel selector, I have the first and the second and then I can go to detail and what I do whenever I'm doing a cleanup is to constantly check. I save backups because this is the moment when it's quite possible to make mistakes and suddenly something will not be working so I'm now in the Northeast and I come back here. I have all of that behavior right. Now, if I come in here into Mountain region, still takes me to the northeastRegion because here in the list row template for the region level, I'm always directing to the northeastRegion. What I want to do is to create a new northeastRegion and a new Northeast Detail and then manage that a little bit better. So, in order to manage this better, what I'm going to need is I'm going to need to duplicate this. I'm going to close these 2 up. I'm going to duplicate northeastRegion and I'm going to duplicate Northeast Detail and I'm going to rename them right away intermountainRegion and intermountain. So, I've got those done and what I'm going to need is another dataSource. I'm going to need the dataSource that is only for intermountain parks. So, what I'll do is create that dataSource, add the file to the project and we'll see how we move on from there. Now, to add the intermountain dataSource, what I want to have is a data file that looks like the Northeast one but that has the appropriate data for the intermountainRegion. I'm going to come here to sampledata. Remember, this is what was part of the template and this is everything. So, I'm going to come up here and copy it and come down here and create a new JavaScript file. I'm going to call this intermountaindata, so I'm using the same naming convention that I was using up here for Northeast data. Now, it's intermountain, I come up here and I will paste in everything that I had from the total file. Now, this method works when you have a fairly brief amount of data and so you can Copy and Paste as I'm doing now. So we have the intermountainRegion and what I want for intermountainRegion is Bryce, I'm deleting. I want Bryce and Carlsbad, I want the Grand Canyon and we line that up. I want Mesa Verde and Yellowstone. Yellowstone, I want that comma gone and I should have the rest of it here. So, this should be my intermountainData file and I can now create a dataSource off of it. Let me save and come to my data sources and I want a new dataSource, let me rearrange over here a little bit. New dataSource, intermountainDataSource and the URL for this is going to be data.js and, lo and behold, because I'm using the same naming convention and because I can always go back and check them, here I am. I have 5 parks in the intermountainData file so I've got my dataSource there. That part is done. So, let's move on and populate the intermountainRegion and intermountainDetail so that we're ready to go with them.
| Course: | Developing iPhone Web Apps |
| Author: | Jesse Feiler |
| SKU: | 34075 |
| ISBN: | 1-935320-89-0 |
| Release Date: | 2009-12-31 |
| Duration: | 8 hrs / 103 lessons |
| Work Files: |
Yes |
| Captions: | No |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |