I've been using a free javascript based tree control called dtree: http://www.destroydrop.com/javascripts/tree/
It's super easy to hook up a CF query. Thanks Tom Schreck 972-361-9943 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Mayfield Sent: Thursday, April 21, 2005 1:47 PM To: [email protected] Subject: cftree I'm using cftree for the first time and am having a problem getting it to behave. I load the tree and populate it without any problem. First question is that I would like to populate the fields in the form based on the selection from the tree but have not been able to get any javascript events like onClick(); to work - is there a way to do this that I am missing? The only work around I could figure out was to add a submit button which reloads the entire form with the fields populated. Second question is that when the form reloads the tree is collapsed. I would like it to open and highlight the record that was selected when the form was submitted. <cftree name="tProjects" width=200 height=435 fontsize=14 bold="yes" completePath="yes" highlighthref="yes" appendkey="Yes"> <cfoutput query="qProjects" group="projectType"> <cftreeItem value="#uCase(projectType)#" parent="tProjects" expand="no"> <cfoutput group="projectCondition"> <cftreeItem value="#uCase(projectCondition)#" parent="#projectType#" expand="no"> <cfoutput> <cfTreeItem value="#ID#" parent="#projectCondition#" display="#projectName#"> </cfoutput> </cfoutput> </cfoutput> </cftree> TIA Jeff ---------------------------------------------------------- To post, send email to [email protected] To unsubscribe: http://www.dfwcfug.org/form_MemberUnsubscribe.cfm To subscribe: http://www.dfwcfug.org/form_MemberRegistration.cfm ---------------------------------------------------------- To post, send email to [email protected] To unsubscribe: http://www.dfwcfug.org/form_MemberUnsubscribe.cfm To subscribe: http://www.dfwcfug.org/form_MemberRegistration.cfm
