I think many CF programmers have abandoned CFTREE in favor of JS/DHTML trees
precisely because Allaire did not provide access to CFTREE's onclick event.
However, it is possible to trap the CFTREE form submittal and get at the
selected node. Here's one way:
* Add a 2nd submit button to the CFFORM.
* Add an onsubmit handler to the CFFORM.
* If the 1st submit button is pressed, the onsubmit handler lets the form
submittal proceed.
* If the 2nd submit button is pressed, the onsubmit handler gets the value of
the selected node, does something with it, and aborts the form submittal.
I don't know what use this is, but you can see an example, with code, at
http://members.evolt.org/dshadovi/cftree/cftree_event.cfm
-David
On Thursday, March 29, 2001 2:29 PM, Garza, Jeff
[SMTP:[EMAIL PROTECTED]] wrote:
> Does anyone know of a way to populate a text box on the fly, using
> Javascript, with the value from a CF-TREE applet using an onDoubleClick or
> onBlur event handler? I can't seem to find any refs as to how this might be
> done since it's not a "normal" form element...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists