Link to home
Start Free TrialLog in
Avatar of dacharla
dacharla

asked on

cftree, cfinput binding error if the cftree format is applet

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
ASKER CERTIFIED SOLUTION
Avatar of _agx_
_agx_
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dacharla
dacharla

ASKER

did not solve the issue but helped to understand the issue
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.

well. i am new to EE..I dont really know what 'B' means to you. I had gone by general nature of grading
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.