Skip to main content
Participant
April 10, 2008
Answered

Problem with Application.cfm

  • April 10, 2008
  • 2 replies
  • 413 views
HI All,
I am facing problem with Application.cfm file. When I try to use the Application.cfm file, the whole page gets distorted with Internet Explorer. However, the page is displayed properly with Firefox. If I change the name to Application1.cfm, then the page is aligned properly in Internet Explorer, but my purpose of uploading fails then.
Any idea, why could this happen.
    This topic has been closed for replies.
    Correct answer Newsgroup_User
    Oraa wrote:
    >
    > Any idea, why could this happen.
    >

    When using your Applciation.cfm file view source in the browser and you
    will see the problem. IE is overly sensitive to anything, including
    white space, appearing before the doctype. If the doctype is not the
    very first thing the browser receives, IE goes into quirks mode which
    often radically changes how it renders a web page. Firefox is more
    standards compliant and ignores extraneous whitespace before the doctype.

    The Solution:
    Use any of ColdFusion's whitespace management features, such as wrapping
    all your Applicaiton.cfm code in a <cfsilent>...</cfsilent> block so
    that no extra whitespace is sent to the browser.

    Saves on bandwidth to!

    2 replies

    Participating Frequently
    April 10, 2008
    What is in the offending Application.cfm?
    Newsgroup_UserCorrect answer
    Inspiring
    April 10, 2008
    Oraa wrote:
    >
    > Any idea, why could this happen.
    >

    When using your Applciation.cfm file view source in the browser and you
    will see the problem. IE is overly sensitive to anything, including
    white space, appearing before the doctype. If the doctype is not the
    very first thing the browser receives, IE goes into quirks mode which
    often radically changes how it renders a web page. Firefox is more
    standards compliant and ignores extraneous whitespace before the doctype.

    The Solution:
    Use any of ColdFusion's whitespace management features, such as wrapping
    all your Applicaiton.cfm code in a <cfsilent>...</cfsilent> block so
    that no extra whitespace is sent to the browser.

    Saves on bandwidth to!

    PunitAuthor
    Participant
    April 11, 2008
    Thanks a lot Ian...The problem was that the first line of the html wasnt the doctype. I was getting crazy trying to debug the problem.