Solved

Need help with cfdiv

Posted on 2012-04-13
2
279 Views
Last Modified: 2012-04-20
Hi,

I have the following code example from Adobe's online Resource Center regarding the use of cfdiv.  Is there a way to refresh the content of divsource.cfm by clicking a button on cfdivtag.cfm without refreshing the entire main page "cfdivtag.cfm"???

NOTE: I'm using ColdFusion 8.

The cfdivtag.cfm file, the main application file, has the following contents:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>cfdiv Example</title>
</head>

<body>
<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"/>
</body>
</html>

The divsource.cfm file that defines the contents of the div region has the following code:
<h3>Echoing main page input:</h3>
<cfoutput>
    <cfif isdefined("url.InputText") AND url.InputText NEQ "">
        #url.InputText#
    <cfelse>
        No input
    </cfif>
</cfoutput>

Many thanks in advance.
0
Comment
Question by:WebAppDeveloper
2 Comments
 
LVL 39

Accepted Solution

by:
gdemaria earned 500 total points
ID: 37871137
Yes - not sure if you require the bind attribute or not, but my applications typically are more complex than that, so I use  ColdFusion.navigate() function.

This is a javascript function that will call a URL and put the contents into the container you specify (in this case your cfdiv)

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=JavaScriptFcns_24.html
0
 

Author Comment

by:WebAppDeveloper
ID: 37874240
Thank you.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hi, I will be creating today a basic tutorial on how we can create a Mail Custom Function and use it where ever we want. The main advantage about creating a custom function is that we can accommodate a range of arguments to pass to the Function and …
Hi, Even though I have created this Tutorial on My personal Blog, Some people might not able to find my website, So here i am posting it again Today, from the topic it is very clear that i will be showing you here the very basic usage of how we …
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now