Solved

cftree, cfinput binding error if the cftree format is applet

Posted on 2011-09-28
5
344 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
Comment Utility
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
Comment Utility
did not solve the issue but helped to understand the issue
0
 
LVL 52

Expert Comment

by:_agx_
Comment Utility
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
Comment Utility
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_
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Today, I was working on some optimization and spam-stopping techniques when I encountered Ben Nadel's post to reduce spam feature using Math (http://www.bennadel.com/blog/197-How-I-Stop-Spammers-On-My-ColdFusion-Blog.htm). While this method is not o…
This is an updated version of a post made on my blog over 3 years ago. It is unfortunately, still very relevant as we continue to see both SQLi (SQL injection) and XSS (cross site scripting) attacks hitting some of the most recognizable website and …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

728 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

14 Experts available now in Live!

Get 1:1 Help Now