Solved

cftree, cfinput binding error if the cftree format is applet

Posted on 2011-09-28
5
346 Views
Last Modified: 2012-05-12
I am using cftree and trying to bind to cfinput type="text. I am able to bind cddiv if the cftree format  is html without any issue. But I am getting binding error if cftree format is applet.

Here is the code

<cfform name="f1">
      <cftree  name="tree1" >
            <cftreeitem value="1" parent="0" display="Root Node"/>
            <cftreeitem value="2" parent="1" display="Branch 1"/>
            <cftreeitem value="3" parent="1" display="Branch 2"/>
            <cftreeitem value="21" parent="2" display="Branch 1.1"/>
            <cftreeitem value="22" parent="2" display="Branch 1.2"/>
            <cftreeitem value="31" parent="3" display="Branch 2.1"/>
            <cftreeitem value="32" parent="3" display="Branch 2.2"/>
            <cftreeitem value="33" parent="3" display="Branch 2.3"/>
      </cftree>
      <cfinput type="text" name="dbgText" bindOnLoad = "no" bind="{tree1.node@click}"/>
</cfform>

can some one help
0
Comment
Question by:dacharla
  • 3
  • 2
5 Comments
 
LVL 52

Accepted Solution

by:
_agx_ earned 50 total points
ID: 36816156
Applets and binding weren't meant to work together.  Binding is a newer feature. It uses javascript and relies on the presence of html/DOM elements.  Applets are totally different. They run as an embedded object in the browser. So it doesn't create those DOM elements .

Does the applet version support an onChange or onClick event? (I haven't used it in years). If so, perhaps you could use that to call some javascript that updates the the input value.
0
 

Author Closing Comment

by:dacharla
ID: 36893280
did not solve the issue but helped to understand the issue
0
 
LVL 52

Expert Comment

by:_agx_
ID: 36893420
Why the B grade? Sometimes the correct answer is "you can't".  The javascript binding just wasn't designed to work with the older applets. Not what you want to hear, but unfortunately that is the reality of it.  If you don't wish to pursue alternatives, that's up to you.  But "not possible" is a valid answer on EE.

0
 

Author Comment

by:dacharla
ID: 36894091
well. i am new to EE..I dont really know what 'B' means to you. I had gone by general nature of grading
0
 
LVL 52

Expert Comment

by:_agx_
ID: 36894424
Welcome to EE.  Grading's a little different on EE.  If a correct answer was provided it's usually given an "A".  "B" grades usually signify the expert didn't fully answer the question, which happens sometimes. But in those cases you should ask for clarification if needed.  However, if the right answer is "it's just not possible" it should be given an A grade.  

     > dont really know what 'B' means to you

Well, most experts take pride in providing thorough and accurate answers and grading is seen as a reflection of how well they did that.  
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. There are several upload tutorials using jquery and coldfusion. I found a very interesting one here Upload Your Files using Jquery & ColdFusion and Preview them (http://www.randhawaworld.com/) . I did keep the main js functions but made sever…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 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