> I have heard some people advise against the use of HTML in > the Application.cfm file. I am wondering what the logic is > behind that thinking. > > I make use of the Application.cfm file to display the > navigation bar at the top of my pages (image maps, etc.) > > I have been doing this for years without a problem that I can > detect. > > What is the consensus? Should I merely use a CFINCLUDE in the > application.cfm for my navigation bar?
There are several reasons why you might not want to place display code within Application.cfm. One is to avoid mixing display and application logic. Another is that, as your application grows, the likelihood that you'll want the exact same display added to every page decreases; for example, when you're downloading a file via CFCONTENT, or displaying a popup window. Now, as problems go, these are pretty minor, and can be worked around pretty easily. However, most people try to structure their applications so that they have as few workarounds as they can, and this becomes more important as your application grows in size and complexity. I wouldn't worry too much about this one way or the other, though. That is, I wouldn't go back to existing applications and rewrite them to avoid this. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228019 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

