Skip to main content
Participant
October 7, 2010
Question

cfoutput content ignored

  • October 7, 2010
  • 2 replies
  • 672 views

Has anyone seen an issue where a browser would ignore contents wrapped in any cf-statement? I'm putting together a little app that will be used in IE on a handheld scanner. On a PC the cfoutputs work correctly. On the handheld the content, even a literal string, is ignored.

I tried <cfoutput>test</cfoutput>. Got nothing

I tried <Cfif 1=1>yes<cfelse>no</cfif>. Got Nothing.

All the HTML components of the pages display correctly but any content that is rendered from CF-server is just missing. The browser on the handheld does not allow me to see what version it is nor view source so I don't know what is actually coming back from the server. The server the app is on is currently hosting several cf-based apps, so I know CF is running and everything is configured correctly at the server. Also, like I said, the page renders correctly on a PC.

Any ideas would be GREATLY appreciated.

Scott

    This topic has been closed for replies.

    2 replies

    Inspiring
    October 7, 2010

    Do you at least get an error when you add invalid CF, something like:

    <cfset x = nowaythisexists>

    ?

    ilssac
    Inspiring
    October 7, 2010

    Question ONE:

    Why is the browser seeing any CFML at all?  Browsers are not supposed to get CFML and there is NO browser in the world that will understand or do anything with CFML tags if it was to get one.

    If one where to get some (as sometimes happen when the CFML is on a server that does not have a properly configured ColdFusion engine) the browser is going to ignore any unrecognized tags, I.E. any and all CFML starting with <cf....>.  But the browser, should display anything that is not actually in the tag angle brackets, such as the strings "test", "yes" and "no" in your example.

    But if NONE of that is displayed, then something else is probably going on.  I would start looking at the CFML code running on the server, where it actually lives.  All CFML will be executed on the server and the resulting HTML, CSS, JavaScript or other output of the CFML will be delivered to the browser to be displayed.

    The only idea I have come up with is that there may be a client browser filter in the code that is preventing the content from be delivered to this hand held device because it is not providing an acceptable client string as defined in the code.  Some developers create this type of code to try and deliver different content to different browsers or to exclude some set of browsers.  They also often do it wrong so that their code becomes problematic as browsers change.

    Participant
    October 7, 2010

    A browser would never get CFML code because the cf-server renders it into HTML. I know how the server works and this particualr server has been running multiple apps for the last 5 years, so I know the server is fine.

    What I was saying was where cfml should be rendered it is not displaying anything. If the code in the file is:

    Test: <cfoutput>123</cfoutput>

    The browser will render:

    Test:

    ilssac
    Inspiring
    October 7, 2010

    Bank Holdup wrote:

    I know how the server work

    But lots of posters here apprently don't, so one can never be sure how basic to make one's assumptions.

    Anything informative in any logs?  Webserver, ColdFusion, JRun (or other Java), OS?