Ask a Question related to Dreamweaver AppDev, Design and Development.
-
francois-yanick #1
Template for ColdFusion not work
We are trying to create a Coldfusion template with Dreamweaver MX 2004 and 2003
(we though the problem was maybe in the version of Dreamweaver). This step is
going well, we obtained our template "file.dwt.cfm".
But, when we try to create a CFM page based on the template we created for it
- and we run it on the browser, we obtained a blank page.
What is weird is when we create a simple HTM page (file.htm) based on the
template, it work and show everything on screen but not for dynamic page.
Did somebody have this kind of problem before? We searched this problem on the
net and it seems that we are alone in that issue!!!
:confused;
Here is the source code generated for file.cfm:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8"></HEAD>
<BODY></BODY></HTML>
Here is the code for file.cfm:
<html><!-- InstanceBegin template="/Templates/table.dwt.cfm"
codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- InstanceEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
</head>
<body>
<table width="555" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="143"><cfif DateFormat(now(), 'hh') gt 0 and DateFormat(now(),
'hh') lt 12>Bonjour<cfelse>Bonsoir</cfif></td>
<td width="412">Francois-Yanick<!-- InstanceBeginEditable name="nom" -->
c<est
une tes<!-- InstanceEndEditable --></td>
</tr>
</table>
</body>
<!-- InstanceEnd --></html>
And here is the code for file.dwt.cfm:
<html>
<head>
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
</head>
<body>
<table width="555" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="143"><cfif DateFormat(now(), 'hh') gt 0 and DateFormat(now(),
'hh') lt 12>Bonjour<cfelse>Bonsoir</cfif></td>
<td width="412">Francois-Yanick<!-- TemplateBeginEditable name="nom"
-->nom<!-- TemplateEndEditable --></td>
</tr>
</table>
</body>
</html>
francois-yanick Guest
-
Pop-up Menu's don't work when using Dreamweaver template
Hi, I have created a pop-up menu in Firewords, as everything I have read tells me not to do it in Dreamweaver. HOwever, the problem is when I... -
Media Playback doesnt work in template
It's easy to use to play an FLV when I create it on it's own new document. It's own document, I repeat. However when I create one on a temlate... -
Calling an coldfusion template from a ASP script
G'day, On the server i am using a asp script to loop thru an xml file that contains a number of email addresses. When i pick up a email address i... -
ClintID does not work for datagrid template columns controls
Hello I have a datagrid "dg" which has two template columns. The first template column contains a button denoted "b" and the second template column... -
Page inheritance (template) doesn't work in virtual directory
An update on my original message seens like virtual directory doesn't like page inheritance I have taken my form in my Secure folder and made a... -
Paul Whitham TMM #2
Re: Template for ColdFusion not work
You are view the CFM page using the webserver rather than simply browing to
it.
--
Regards
Paul Whitham
Macromedia Certified Professional for Dreamweaver MX2004
Valleybiz Internet Design
[url]www.valleybiz.net[/url]
Team Macromedia Volunteer for Ultradev/Dreamweaver MX
[url]www.macromedia.com/support/forums/team_macromedia[/url]
"francois-yanick" <fybourassa@ccemtl.org> wrote in message
news:d3j31h$cs7$1@forums.macromedia.com...2003> We are trying to create a Coldfusion template with Dreamweaver MX 2004 andis> (we though the problem was maybe in the version of Dreamweaver). This stepfor it> going well, we obtained our template "file.dwt.cfm".
>
> But, when we try to create a CFM page based on the template we createdon the> - and we run it on the browser, we obtained a blank page.
>
> What is weird is when we create a simple HTM page (file.htm) based on the
> template, it work and show everything on screen but not for dynamic page.
>
> Did somebody have this kind of problem before? We searched this problemDateFormat(now(),> net and it seems that we are alone in that issue!!!
> :confused;
>
> Here is the source code generated for file.cfm:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=Content-Type content="text/html; charset=utf-8"></HEAD>
> <BODY></BODY></HTML>
>
>
> Here is the code for file.cfm:
>
> <html><!-- InstanceBegin template="/Templates/table.dwt.cfm"
> codeOutsideHTMLIsLocked="false" -->
> <head>
> <!-- InstanceBeginEditable name="doctitle" -->
> <title>Untitled Document</title>
> <!-- InstanceEndEditable -->
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> <!-- InstanceBeginEditable name="head" -->
> <!-- InstanceEndEditable -->
> </head>
>
> <body>
> <table width="555" border="0" cellspacing="0" cellpadding="0">
> <tr>
> <td width="143"><cfif DateFormat(now(), 'hh') gt 0 andname="nom" -->> 'hh') lt 12>Bonjour<cfelse>Bonsoir</cfif></td>
> <td width="412">Francois-Yanick<!-- InstanceBeginEditableDateFormat(now(),> c<est
> une tes<!-- InstanceEndEditable --></td>
> </tr>
> </table>
> </body>
> <!-- InstanceEnd --></html>
>
> And here is the code for file.dwt.cfm:
>
> <html>
> <head>
> <!-- TemplateBeginEditable name="doctitle" -->
> <title>Untitled Document</title>
> <!-- TemplateEndEditable -->
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> <!-- TemplateBeginEditable name="head" -->
> <!-- TemplateEndEditable -->
> </head>
>
> <body>
> <table width="555" border="0" cellspacing="0" cellpadding="0">
> <tr>
> <td width="143"><cfif DateFormat(now(), 'hh') gt 0 and> 'hh') lt 12>Bonjour<cfelse>Bonsoir</cfif></td>
> <td width="412">Francois-Yanick<!-- TemplateBeginEditable name="nom"
> -->nom<!-- TemplateEndEditable --></td>
> </tr>
> </table>
> </body>
> </html>
>
Paul Whitham TMM Guest
-
francois-yanick #3
Re: Template for ColdFusion not work
I do not know exactly what is the real explication for the problem. But I deleted the site and recreated it. Then, I rebooted the system (machine) and it now work.
francois-yanick Guest



Reply With Quote

