This content has been marked as final. Show 7 replies
My first advice would be to avoid having any HTML in Application.cfm.
Find another common place to store that HTML and include it from within the file itself.
For example, a common method is to have a header.cfm and a footer.cfm that have the header and footer HTML, respectively. You can then include those files at the top of the page. It may seem tempting to include these files from Application.cfm, but don't do so. It will cause you headaches later.
Including header and footer files is the most common method for this.
I also like using what I call layout components (full disclosure, I wrote this article):
Hope that helps.
Thank you. My developer at some point may be able to figure this out. It sounds complicated. Is there a really simpler, easier solution? Something that even I could do to the pages?
Thanks. I just ended up cutting the title, html, and body tags, and ended up with this and it all seems to work ok. Thank you.
Cutting off the HTML tags is another way of saying that the doctype of the Application file is not html. So, why not go all the way?
Sorry. I am just technical enough to be dangerous. What do you mean by go all the way? Can you be more specific and exact so I can follow your advice?
what BKBK tries to explain is that now you dont have any HTML code inside your application.cfm file. The doctype of this file is not html, so the following code is not needed in your application.cfm file:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
As you deleted all HTML code from your applicacion.cfm file, there is no need for this.
It seems that the only code you need in your application.cfm file is the variables assignment.
I hope this helps.