> I am attempting to pull the XML from Amazon in, but I am
> having a problem with the image portion. There are some
> products that do not have images defined. I have attempted to use
>
> <cfif
> IsDefined('myAmazonResults.ItemSearchResponse.Items.Item[i].Im
> ageSets.ImageSet.Tinyimage.url.xmlText')> ...
You can't use IsDefined to test for the existence of an array member. The
array itself is the variable, not the member. I think this may have changed
in CF8, but honestly I'm not sure.
In any case, you can use exception handling (CFTRY/CFCATCH) to deal with
this problem.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290091
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4