Converting an RSS feed into a query object using the CFFEED tag in ColdFusion

Readability

Converting an RSS feed into a query object using the CFFEED tag in ColdFusion

In a pre­vi­ous exam­ple, “Pars­ing a remote XML feed using the CFFEED tag in Cold­Fu­sion”, we saw how you could parse a remote XML feed into an XML object using the <CFFEED> tag in Cold­Fu­sion by set­ting the action attribute to “read” and set­ting the source, and xmlVar attributes.

The fol­low­ing exam­ple shows how you can con­vert an RSS feed into a query object using the <CFFEED> tag in Cold­Fu­sion by set­ting the action attribute to “read” and set­ting the source and query attributes.




#rssFeed.title#

And the out­put of the <CFOUT­PUT> tag is as follows:

Tog­gling the full screen con­trol on the CFME­DI­APLAYER tag in Cold­Fu­sion 9

Tog­gling the title on the CFME­DI­APLAYER tag in Cold­Fu­sion 9

Tog­gling the con­trol bar on the CFME­DI­APLAYER tag in Cold­Fu­sion 9

Deter­min­ing when a video has fin­ished play­ing using the CFME­DI­APLAYER tag in Cold­Fu­sion 9

Call­ing a JavaScript func­tion when a video starts play­ing in the CFME­DI­APLAYER tag in Cold­Fu­sion 9

Dis­play­ing videos using the CFME­DI­APLAYER tag in Cold­Fu­sion 9

Redi­rect­ing the user’s browser using the CFLO­CA­TION tag in ColdFusion

Cre­at­ing alter­nat­ing row col­ors on a table in Cold­Fu­sion using jQuery

Cre­at­ing alter­nat­ing row col­ors on a table in ColdFusion

Pro­gram­mat­i­cally cre­at­ing a query object in ColdFusion

In a previous example, “Parsing a remote XML feed using the CFFEED tag in ColdFusion”, we saw how you could parse a remote XML feed into an XML object using the <CFFEED> tag in ColdFusion by setting the action attribute to “read” and setting the source, and xmlVar attributes.

The following example shows how you can convert an RSS feed into a query object using the <CFFEED> tag in ColdFusion by setting the action attribute to “read” and setting the source and query attributes.

<cffeed action="read"
        source="http://coldfusionexamples.com/feed/"
        query="rssFeed" />
 
<cfoutput query="rssFeed">
<p>#rssFeed.title#</p>
</cfoutput>

And the output of the <CFOUTPUT> tag is as follows:

Toggling the full screen control on the CFMEDIAPLAYER tag in ColdFusion 9

Toggling the title on the CFMEDIAPLAYER tag in ColdFusion 9

Toggling the control bar on the CFMEDIAPLAYER tag in ColdFusion 9

Determining when a video has finished playing using the CFMEDIAPLAYER tag in ColdFusion 9

Calling a JavaScript function when a video starts playing in the CFMEDIAPLAYER tag in ColdFusion 9

Displaying videos using the CFMEDIAPLAYER tag in ColdFusion 9

Redirecting the user’s browser using the CFLOCATION tag in ColdFusion

Creating alternating row colors on a table in ColdFusion using jQuery

Creating alternating row colors on a table in ColdFusion

Programmatically creating a query object in ColdFusion

Leave a Reply

Your email address will not be published.