Have you tried the href attribute on the cftreeitem tag? I would think you could use a http://javascript:xxxx type link to call a custom javascript function, passing in the info to have it load the other form fields.
Kathy -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Mayfield Sent: Wednesday, April 27, 2005 11:57 AM To: [email protected] Subject: CFTREE - repost I sent this to the list a few days ago but received no response. If anybody has any ideas please take a moment to reply. I'm using cftree for the first time and am having a problem getting it to behave. Server config is version 6.1 on Red Hat. I can successfully load the tree and populate it from a query. First question - 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. It works, but not as smooth as I would like. Second question - when the form reloads after the form submit the tree is collapsed. I would like it to open and highlight the record that was selected when the form was submitted. Is there any way to do that? Here's a cut and paste of the tree code: <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
