|
|
|
|
Functions
Events
Variables
Libraries
|
|
Syntax
| channels_readMarks_nextUnread(getLastUnread) |
Parameters
| BOOL | getLastUnread | Optional. Set to true if you want to retrieve the unread item in the last position from the last RSS feed defined in the XML configuration file. The default value is false, so the first unread item is returned. |
Return value
| Array, or empty string if all items are marked as read. |
Description
Scans all the news items in all the RSS feeds downloaded with {link:CHANNELS_DOWNLOAD} and returns the first or the last item not marked as read.
If no unread item is found, the function returns an empty string.
The array returned contains all the data for the unread item.
Format of the array: xmlFeed.js.
More info: Managing read marks |
JavaScript Sample Code
unread_item = channels_readMarks_nextUnread()
if(unread_item['Feed']['Feed_URL'] != 'undefined')) {
alert(unread_item['Description'])
} |
|
|
|