?
Solved

cftree, cfinput binding error if the cftree format is applet

Posted on 2011-09-28
5
Medium Priority
?
350 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 52

Accepted Solution

by:
_agx_ earned 150 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

Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

Question has a verified solution.

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

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 …
I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

771 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