I am pulling an RSS feed to my page using this code:

 

<td valign="top">

<cfhttp url="http://www4.esu.edu/news.xml"; method="get">

<cfset objRSS = xmlParse(cfhttp.filecontent)>

<cfset Item_Length = arraylen(objRSS.rss.channel.item)>

<cfloop index=i from="1" to=#Item_Length# step="1">

<p class="news"><span class="newstitle">

<a class="titlelink" href="<cfoutput>
#objRSS.rss.channel.item[i].link.xmltext# </cfoutput>">

<cfoutput> #objRSS.rss.channel.item[i].title.xmltext# </cfoutput>

</a></span><br />

<cfoutput> #objRSS.rss.channel.item[i].description.xmltext# </cfoutput>

<br /><strong>|</strong> <a href="<cfoutput>
#objRSS.rss.channel.item[i].link.xmltext# </cfoutput>"
class="eventlink">more</a></p>

</cfloop>

<p class="news"><a href="#" class="eventlink">all news
>></a></p><p>&nbsp;</p></td>

 

 

If I use the closing </cfhttp> tag I get an error stating FILECONTENT is
undefined, if I leave it off the page takes a long time to load.

 

Any advice would be appreciated.

 

Steve LaBadie, Web Manager

East Stroudsburg University

200 Prospect St.

East Stroudsburg, Pa 18301

570-422-3999

http://www.esu.edu

[EMAIL PROTECTED]

 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314462
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to