Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Getting Started / March 2006



Tip: Looking for answers? Try searching our database.

A few simple questions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hydrowizard - 31 Mar 2006 00:07 GMT
Hi I am trying to see if I am doing this right. I will quickly show you what I
am doing and I put the questions at the end of the post.
I have an topnav.cfm which is included in each page.
An onrequestend.cfm that is the footer for each page.
Various .cfm pages which include the topnav.cfm and onrequestend.cfm

On the topnav I have the metatag info and open the html tag.
topnav.cfm
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
<InvalidTag http-equiv="Content-Type" content="text/html; charset=latin-1" />
<InvalidTag name="Description" content="info" />
<InvalidTag name="Keywords" content="keywords" />
<title>Site title</title>
<link rel="stylesheet" href="styles.css" type="text/css" />   
</head>
<table border="0" cellpadding="0" cellspacing="0" width="756">
<tr>
 <td colspan="13"><br>
<table width="756" border="0" cellpadding="0" cellspacing="0">
<tr><td>
<!---top nav image --->    
<img src="images/bgtop.gif" alt="Poggio alle Corti" width="794"
height="110"></td>
            </tr>
            <tr>
<!---topnav links --->
</table>

Then the .cfm pages start with cfinclude and javascript and then the body tag
but the body tag isn?t closed on these pages.  
<cfinclude template="topnav.cfm">
MY JAVASCRIPT GOES HERE
<body leftmargin="10" topmargin="0" bgcolor="white">
<table><tr>INFORMATION HERE</tr>

The onrequestend.cfmpage has the footer part and close the html and body tag.
<tr valign="top">
<td colspan="4" align="center" valign="top">
<DIV id=footer_home><A
href="index.html">home</A> | <A
href="info.html">villa information</A> | <A
href="accommodation.html">accomodation</A></tr>
</table>   
</body>   
</html>

Questions
1.Does the topnav.cfm look ok? ie Should the topnav.cfm have the stylesheet
info and the metatag data for each page?
2.Should the body tag and html tag be closed in the .cfm pages or in the
onrequestend.cfm page?
3.Is onrequestend.cfm automatically included in all .cfm pages or does it have
to be entered into the application.cfm?
4.At the moment I don?t have an application.cfm as it is a very simple
brochure site but would it be a good idea to put <cfinclude
template="topnav.cfm"> into the application.cfm instead of on each page?

Thank you for any answers!
Dan Bracuk - 31 Mar 2006 05:28 GMT
We have a similar situation where we want standardized headers and footers so
we (one of my coworkers) put the whole thing together in a custom tag.  It
includes the opening and closing html and body tags.  What we then do is.

variables, queries, processing, etc

<cf_displaycustomtag>
display code
</cf_displaycustomtag>

it works great.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.