SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 162 | Next

Deepak Vohra

"Ajax in Oracle JDeveloper"

feed.entries.length;
i++) {
var entry = result.feed.entries[i];
var attributes = [???title???, ???link???,
???publishedDate???, ???contentSnippet???];
for (var j = 0; j < attributes.length; j++) {
9.5 Receiving Multiple Feeds 191
Fig. 9.5 JSON RSS Feed
9.5 Receiving Multiple Feeds
The Google Ajax Feed API may be used to display multiple feeds. Next,
we shall display multiple feeds using the FeedControl class. We shall
display the JDeveloper RSS feed and the Application Express News RSS
var div = document.createElement(???div???);
div.appendChild(document.createTextNode(entry[attri
butes[j]]));
container.appendChild(div);
}
}}
}); }
google.setOnLoadCallback(initialize);




Run the RSSAjax.html application. The RSS Feed entry??™s title, link and
publication date get displayed as shown in Fig. 9.5.
192 9 RSS Feed with Ajax
feed. As in the JavaScript application to display a single feed specify a
script tag for the Google Feed APIs. Add a div element to the
JavaScript application to display the RSS Feeds.
Loading

Load version 1 of the Feed API. Invoke a callback function initialize
after the Google Feed API has loaded. In the callback function create a
FeedControl object.
var feedControl = new google.feeds.FeedControl();
Specify the RSS Feeds to be loaded by the FeedControl.


Pages:
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6