Skip to main content
WolfShade
Legend
November 29, 2018
Answered

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

  • November 29, 2018
  • 1 reply
  • 687 views

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 has been closed for replies.
    Correct answer iambearbait

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

    1 reply

    BKBK
    Community Expert
    Community Expert
    November 29, 2018

    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.

    WolfShade
    WolfShadeAuthor
    Legend
    November 29, 2018

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

    V/r,

    ^ _ ^

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

    iambearbait
    iambearbaitCorrect answer
    Participant
    July 1, 2022

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