Granted, I  haven't had morning coffee yet, but the first thing I see is a 
couple of overlapping "

So instead of 

<cfloop index="i" from="1" to="#ArrayLen(extract.avenger["URLs"])#">
    <cfhttp url="#extract.avenger['URLs'][i]#" result="theHtml" 
resolveurl="true"> 
</cfloop>

try

<cfloop index="i" from="1" to="#ArrayLen(extract.avenger["URLs"])#">
    <cfhttp url="#extract.avenger["URLs"][i]#" result="theHtml" 
resolveurl="true"> 
</cfloop>



On Sunday, August 17, 2014 11:44:15 PM UTC-5, Rawk wrote:
>
> I have an array of URLs inside of a nested struct that I want to retrieve 
> with cfhttp.  
>
> The following code throws a "Data not supported" error on the cfhttp call:
>
> <cfloop index="i" from="1" to="#ArrayLen(extract.avenger["URLs"])#">
>     <cfhttp url="#extract.avenger["URLs"][i]#" result="theHtml" 
> resolveurl="true"> 
> </cfloop>
>
> The following code works without throwing an error:
>
> <cfloop index="i" from="1" to="#ArrayLen(extract.avenger["URLs"])#">
>     <cfset theUrl = extract.avenger["URLs"][i]>
>     <cfhttp url="#theUrl#" result="theHtml" resolveurl="true"> 
> </cfloop>
>
> It seems cfhttp cannot accept the reference to the variable when it's 
> nested the way it is.  
>

-- 
-- 
online documentation: http://openbd.org/manual/
 http://groups.google.com/group/openbd?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Open 
BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to