Is transDOM.selectNodes("/TrackResponse/Activity") returning a
structure? I mean a real CF structure?

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Macromedia

Email    : [EMAIL PROTECTED]
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Jon Hall [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, July 15, 2002 4:48 PM
> To: CF-Talk
> Subject: Re: cfscript for in vs cfloop collection...
> 
> 
> Tried it...wont work. It says it's not a valid CF structure, 
> which it isn't...but I was hoping that they were equivalets. 
> Seems strange for CF to not use the same cfloop-collection 
> code when implementing for-in. Maybe Allaire wasn't into code 
> reuse, or the code was really really nasty :)
> 
> jon
> ----- Original Message -----
> From: "S. Isaac Dealey" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Monday, July 15, 2002 4:30 PM
> Subject: Re: cfscript for in vs cfloop collection...
> 
> 
> > > This works fine:
> > > <cfloop 
> > > collection="#transDOM.selectNodes("/TrackResponse/Activity")#"
> > > item="i">
> > >
> > > This throws an invalid parser construct error at the second 
> > > parentheses (yes I have tried both single and double 
> quotes): for ( 
> > > i in objXMLDOM.selectNodes('/TrackResponse/Activity')) {
> > >
> > > Am I wrong in assuming that cfloop-collection and cfscript for-in 
> > > loops are the same?
> >
> > You might try setting the pointer to the object above the loop...
> >
> > myxmlobject = objMXLCOM.selectNodes('/TrackResponse/Activity');
> > for (i in myxmlobject) {
> > ... whatever...
> > }
> >
> > it may just be that CF doesn't like that syntax for some 
> unspecified 
> > reason...
> >
> > Isaac Dealey
> >
> > www.turnkey.to
> > 954-776-0046
> > 
> 
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
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