Forgot about cfdump, will give it a try...

> Am not sure what your code objURL[i].text is for?
> Are u trying to parse an xmlDoc.. then its different
> objURL[i].xmlText;

Following is what I am trying to achieve...

objXMLHTTP = createObject("COM", "Microsoft.XMLHTTP");
objXMLDOM = createObject("COM", "Microsoft.XMLDOM");

objXMLHTTP.open("GET", "http://www.coldfusionist.com/xml/rss/rss.xml";,
False);
objXMLHTTP.Send();
objXMLDOM = objXMLHTTP.ResponseXML;

objItem = objXMLDOM.getElementsByTagName("item");

writeOutput("<table width=""100%"" cellspacing=""5"" cellpadding=""5"">");
for (i = 0; i LTE objItem.length - 1; i = i +1  )
{
 writeOutput("<tr>");
 writeOutput("<td width='200'>");
 writeOutput("<a href='foo' target='_blank'>foo" & objItem(i).text);
 writeOutput("</a></td>");
 writeOutput("<td></td>");
 writeOutput("</tr>");
}

writeOutput("</table>");

objXMLHTTP = false;
objXMLDOM = false;


> Joe Eugene
>
> > -----Original Message-----
> > From: Taco Fleur [mailto:[EMAIL PROTECTED]
> > Sent: Sunday, February 23, 2003 11:08 PM
> > To: CF-Talk
> > Subject: cfscript object array reference
> >
> >
> > objXMLHTTP = createObject("COM", "Microsoft.XMLHTTP");
> >
> > The code below creates an array and assigns it to the variable
> > "objURL" if I am correct
> > objURL = objXMLDOM.getElementsByTagName("url");
> >
> > However I can't seem to refence to it, neither with
> > objURL(i).text); nor with
> > objURL[i].text);
> >
> > Any ideas?
> >
> >
> >
> >
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
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

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to