Sagewire Logo

HTML to CFML

11 Message(s) by 6 Author(s) originally posted in cfml getting started


From: Volantorman Date:   Friday, October 19, 2007
When I change the webpage file name from filename.html to filename.CFM the webpage loses its format/styling. WTF!

Anyone have a solution or know why this is happening?

:confused;


From: jdeline Date:   Friday, October 19, 2007
Could you provide a link to an example on the Web?


From: Volantorman Date:   Friday, October 19, 2007
Nope sorry I cannot - Corporate restrictions prevent me. I just can tell you if
I have a centered nice looking 3 column page in html, as soon as I rename it to
a CFM filetype and load it into the browser (FireFox or IE 6 or 7) the page
sticks to the left side of the window and the columns become out of alignment
and some colours change too.

I thought nothing'd happen but it does and it's a mess.


From: CFMXPrGrmR Date:   Friday, October 19, 2007
Sounds odd to me, I use CSS with ColdFusion pages all the time and I can not remember it
causing the formatting to blow up just by changing the extension (not that I
do not believe you). Could you post the code? At least maybe the CSS and top of
the page so we could see what could cause this.


From: Azadi Date:   Sunday, October 21, 2007
wrote in message:
Nope sorry I cannot - Corporate restrictions prevent me. I just can tell you if
I have a centered nice looking 3 column page in html, as soon as I rename it to
a CFM filetype and load it into the browser (FireFox or IE 6 or 7) the page
sticks to the left side of the window and the columns become out of alignment
and some colours change too.
I thought nothing'd happen but it does and it's a mess.



is your css defined in the same page or in a separate .css file?

--

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com


From: jdeline Date:   Monday, October 22, 2007
Display your CFM page and do a View Source. Upload this page to the Web and
go to http://www.netmechanic.com/products/HTML _Toolbox_FreeSample.shtml. Enter
the URL of the page into the form provided, supply your e-mail address and
click "Test Now". The result will show you, in agonizing detail, what's wrong
with your HTML. This should point you to a solution to the problem.

An alternative is http://validator.w3.org/, where you can get similar results.
Or if you want to download a HTML checker, try
http://sourceforge.net/projects/htmlchecker.

If all that fails, save your "good" HTML and your "bad" CF-generated HTML as
two separate files and use something like Beyond Compare
(http://www.scootersoftware.com/) to find the differences.


From: Adam Cameron Date:   Monday, October 22, 2007
What's the difference between the rendered HTML from the .html and .CFM
files?

--
Adam


From: Volantorman Date:   Monday, October 22, 2007
Thanks for those links, I will be sure to post a note of what the heck caused the
problem. For the other question my .css is in another file on the app server.
As I said all files work great in HTML but not after renaming same files to
.CFM

If we were allowed to use tables I'd solve it in a jiffy but I have to use
CSS in order to conform the corporate "Look and Feel"
aaaarrrrrrrrgggggggghhhhhhhhhhh.


From: Ian Skinner Date:   Monday, October 22, 2007
Any chance you've an errant Application.CFC throwing extranious
whitespace and|or other content at the top of the page. This can cause
some browsers to void their 'compliance' and throw the browser into
'quirks' mode which can have dramatic effects on how CSS works on the
page layout.


From: Ian Skinner Date:   Monday, October 22, 2007
wrote in message:
Any chance you've an errant Application.CFC throwing extranious
whitespace and|or other content at the top of the page. This can cause
some browsers to void their 'compliance' and throw the browser into
'quirks' mode which can have dramatic effects on how CSS works on the
page layout.


That should be Application.cfm. Application.CFC'd be of less concern.


From: Volantorman Date:   Thursday, October 25, 2007
AND THE $65M (in Monoply Money) answer goes to Ian Skinner......

Even if you put a blank Application.CFM, Cold Fusion won't have to go digging
for one elsewhere. Soon after I created the blank Application.CFM file,
everything fell back into place.

So I tip my hat to you Ian - Thanks for taking my FreezingFusion and warming
it up a bit.

As to the rest of you - I also thank you for your input and links to other
tools etc. So DYAAAAHHH whenever you use Cold Fusion make sure there is an Application.CFM
in the root of your project.



Next Message: CFLOGIN Probem


Blogs related to HTML to CFML

What is ColdFusion?
But unlike the pages in a static Web site, the pages in a ColdFusion application include the server-side ColdFusion Markup Language (CFML) in addition to HTML. CFML gives you the ability to control the behavior of your applications, ...

Re: IIS 7.0 for CFML Developers
... product release - download the "What's New PDF" now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291169 Subscription: ...

ColdFusion is the next FrontPage
In just a few lines of CFML code I was able to add an Ajax auto suggest text box. With a few more lines of CFML and little ColdFusion component, I was able to create a "live HTML data grid" complete with automatic paging, ...

Let’s learn ColdFusion
ColdFusion is a simple language to learn and use primarily because it employs a tag-based syntax, which makes the transition between HTML (the language that your Web browser uses to render content) and CFML (ColdFusion Markup Language, ...

Checkbox validation
You mean your output isn't parsing the CFML code? Either coldfusion isn't installed, or isn't installed properly, or you're not executing a file that coldfusion parses (ie, you've got CFML code on an .htm or .html file) ...

Re: Checkbox validation
Either coldfusion isn't installed, or isn't installed properly, or > you're not executing a file that coldfusion parses (ie, you've got > CFML code on an .htm or .html file) > > Rick > > On 10/12/07, Steve LaBadie wrote: > > I have ...


Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional