Snipe,

I found the issue you mentioned yesterday in CFTREE. Here is how to fix
it.

In the previous version of CF_TREE, you would reference the selected
node in Javascript as:

_CF_getTree(document.cftreename)

Where cftreename is the name that you assigned to the CFTREE element.
This actually would not give you the exact name, but a string that
contained the name. Here is the complete function to get the selected
node in the previous version of the applet:

function FindSelectedNode()
        {
                NodeName = _CF_getTree(document.cftreename); 
                mposition=NodeName.indexOf(";")+2;
                NodeName=NodeName.substring(mposition,NodeName.length);
                if (NodeName != '')
                {
                        Whatever you want to do with the selected node;
                }
                else
                {
                        alert ("Please select one of the elements");
                }
                
        }


For CFTREE in version 5 you need to reference the selected node as 

formname.__CFTREE__formname__cftreename.value; 

Where formname is the name of the Form that contains the CFTREE element

Here is the complete code for version 5.0

function FindSelectedNode()
        {
                
                NodeName =formname.__CFTREE__formname__cftreename.value;

                mposition=NodeName.indexOf(";")+2;
                NodeName=NodeName.substring(mposition,NodeName.length);
                if (NodeName != '')
                {
                        Whatever you want to do with the selected node;
                }
                else
                {
                        alert ("Please select one of the elements");
                }
                
        }


Hope this helps.

Best Regards!

Ricardo Villalobos
Dimasys, Inc.



-----------------------------------
>Isn't there also a issue with CFTree in that one of the old JavaScripts
>that it used to make is no longer made in CF5?  I have yet to upgrade
to
>CF5 on the one site I use CFTree on, so have no first hand experience
with
>this.  I think it is the _CF_getTree() function, but I might be wrong
on
>that function name.

Snipe - <CF_BotMaster Network="EFNet" Channel="ColdFusion">

On Wed, 29 Aug 2001, Mike Brunt wrote:

> Yes they were upgraded and there can be issues with CFGrid when
upgrading to
> 5.0. Knowledge Base 20371 lists various hotfixes including the CFGrid
one.
> 
> Kind Regards - Mike Brunt
> 
> -----Original Message-----
> From: Ricardo Villalobos [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 29, 2001 7:53 AM
> To: CF-Talk
> Subject: ColdFusion 5.0 Applets
> 
> 
> Did Macromedia change the java applets in version 5.0? It seems to me
> like they upgraded them to Java 1.3.1 but I wanted to verify with you
> guys...
> 
> Best Regards!
> 
> Ricardo Villalobos
> Dimasys, Inc.
> 


FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to