Skip to main content
July 31, 2008
Answered

simple CFDIV question

  • July 31, 2008
  • 1 reply
  • 414 views
Hi Gang-

I'm dipping my toes into the "CF8 Ajax Tool Pool" and need a little help with CFDIV.

I have a simple string of text that I want to wrap in a HREF in order to show users a drilldown page in the CFDIV directly beneath the string. For the life of me I'm drawing a complete blank on how to set up the href code! It's basically the same exact thing as the Adobe docs use for CFDIV (pasted below) but I don't want to use a form, I want to use the href instead. Any ideas?

<cfform>
<cfinput name="tinput1" type="text">
</cfform>

<h3> using a div</h3>
<cfdiv bind="url:divsource.cfm?InputText={tinput1}" ID="theDiv"
style="background-color:##CCffFF; color:red; height:350"/>

Thanks in advance,

Rich

    This topic has been closed for replies.
    Correct answer
    ...seek and ye shall find....
    turns out it was actually pretty simple, although the docs really weren't that clear, I had to dig for this one....


    <a href="javascript:ColdFusion.navigate('yourFile.html','yourDiv');">your link text</a>

    <cfdiv style="width:99%; height:350px;" id="yourDiv" />

    1 reply

    Correct answer
    August 1, 2008
    ...seek and ye shall find....
    turns out it was actually pretty simple, although the docs really weren't that clear, I had to dig for this one....


    <a href="javascript:ColdFusion.navigate('yourFile.html','yourDiv');">your link text</a>

    <cfdiv style="width:99%; height:350px;" id="yourDiv" />