Upcoming events tile issue!
kikumar@mdsol.com Dec 11, 2016 7:06 AMHi All,
I am developing a tile to display upcoming events, the tile will display content for all events or for a particular place/project/group based on the tile configuration.
I am using the RSS feed XMLs to load the data for upcoming events, because I could not find a way of getting upcoming events through osapi.
for all upcoming events I am using:
https://mdsol-sandbox.jiveon.com/view-browse-feed.jspa?browseSite=content&browseViewID=content&userID="+viewer+"&filterID=all~objecttype~objecttype[event]~event[upcoming]&sortKey=all&sortOrder=1&numItems="+count;
The development of the tile is almost done.
Now, I am facing a problem that, when the user login to our jive instance and visit the page where this tile is installed, jive ask for authentication again may be because ajax try to load xml from RSS feed:
Looking for a workaround:
1- can we avoid this re-authentication somehow ?
here is my code that loads rss feed xml:
code in view.js of tile which is used to load rss feed:
$.ajax({
type: "GET",
dataType: "xml",
success: function (xml) {
$(xml).find('item').each(function () {
eventsData.push(tempObj);
});
}
});
2- Can I get the same output through osapi directly ?
Following RSS load upcoming events for
my jive instance:
https://mdsol-sandbox.jiveon.com/view-browse-feed.jspa?browseSite=content&browseViewID=content&userID="+viewer+"&filterID=all~objecttype~objecttype[event]~event[upcoming]&sortKey=all&sortOrder=1&numItems="+count;
Ryan Rutan, expected a correct answer
thanks in advance!