|
the "evaluate" email I sent was reall just a joke because Sean left it
out, technically it will work , and because Ray's got a bit of a
reputation for detesting it. I don't generally advocate the use of
evaluate - it's slower and the code is usually uglier. Since Sean
askeed for a scenario when you would want to use it, I will give you
one. One of the applications I built had a drop down list that showed
all of the nodes in an XML file - in hierarchial format (indented, etc.
like a tree). When you selected a node and submitted the form, the
next page allowed you to edit that particular node. Passing the string
that represents the full path to the node and then evaluating it in
order to pull all of the data for that node was by far the best
approach. You may be wondering why I couldn't just pass a string that
worked as an XPath statement. As XML packets grew, it was too resource
intensive to generate working XPath strings (the XML would require a
lot of business logic to do this)... however, simply looping over the
XML once to build the path to the name of the node, which is what I
needed to display in the drop-down anyway, was the fastest, most
elegant solution. Anyway, as Sean has stated, you pretty much never
actually need evaluate - there's almost always a more elegant solution. ~Simon Simon Horwith CIO, AboutWeb - http://www.aboutweb.com Editor-in-Chief, ColdFusion Developers Journal Member of Team Macromedia Macromedia Certified Master Instructor Blog - http://www.horwith.com Sean Corfield wrote: ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected]On Wed, 16 Mar 2005 13:21:10 -0000, Robertson-Ravo, Neil (RX) <[EMAIL PROTECTED]> wrote: |
- Re: [CFCDev] Calling a cfc method w... Martin Laine
- Re: [CFCDev] Calling a cfc method whose ... Peter J. Farrell
- Re: [CFCDev] Calling a cfc method whose name is in a... Steve Bryant
- Re: [CFCDev] Calling a cfc method whose name is ... Bill Rawlinson
- RE: [CFCDev] Calling a cfc method whose name is in a... Dave Merrill
- Re: [CFCDev] Calling a cfc method whose name is in a... Jerry Ela
- Re: [CFCDev] Calling a cfc method whose name is ... Bill Rawlinson
- RE: [CFCDev] Calling a cfc method whose name is in a vari... Steve Bryant
- Re: [CFCDev] Calling a cfc method whose name is in a... Simon Horwith
- RE: [CFCDev] Calling a cfc method whose name is in a vari... Harry Klein
- Re: [CFCDev] Calling a cfc method whose name is in a vari... Simon Horwith
- RE: [CFCDev] Calling a cfc method whose name is in a vari... Harry Klein
- RE: [CFCDev] Calling a cfc method whose name is in a vari... Michael Collins
- RE: [CFCDev] Calling a cfc method whose name is in a vari... Dave Watts
