Skip to main content
WolfShade
Legend
Nov 29, 2018 3:46 PM UTC
Answered

Playing around with CFDIV, and it's not working...

Hello, all,

I'm just playing around with CFDIV, seeing what is possible, and something is not working.

_any.cfm:

<cfoutput>This server is: #cgi.server_name#</cfoutput>

index.cfm:

<cfdiv id="testCFDiv" bind="url:_any.cfm" bindOnLoad="true"></cfdiv>

When I open index.cfm in a browser, I get a blank page.  Using F12, I can see:

<div id="testCFDiv"></div><!--- empty - nothing --->

Shouldn't the CFDIV be loading the contents of _any.cfm???

V/r,

^ _ ^

    This topic is closed to new replies. Start a new post to keep the conversation going.
    iambearbait
    iambearbaitCorrect answer
    Participant
    Jul 1, 2022 5:22 PM UTC

    I found placing the javascript in the top container and not in the cfdiv itself solved many of my similar problems

    8 replies

    BKBK
    Community Expert
    Community Expert
    Nov 29, 2018 8:34 PM UTC

    I copied your exact code. When I launch index.cfm, it works as expected. I see

    This server is: 127.0.0.1

    Using F12, I also see a bunch of Javascripts that ColdFusion generated in the HTML head.

    Translate
    WolfShade
    WolfShadeAuthor
    Legend
    Nov 29, 2018 8:35 PM UTC

    Odd.. I wonder why my code isn't working locally.

    V/r,

    ^ _ ^

    UPDATE: I, too, am seeing the JS that CF generates and includes.

    Translate
    iambearbait
    iambearbaitCorrect answer
    Participant
    Jul 1, 2022 5:22 PM UTC

    I found placing the javascript in the top container and not in the cfdiv itself solved many of my similar problems

    Translate