by suvendu4urs » Fri Oct 07, 2011 6:07 am
I have developed the script to get all the news information to display it in 3 clients.For this i have used Jquery.ajax.
Currently everything is fine.It works for certain period of time.After that it freezes.One client might be showing weather information and other might be showing news.
I have attached the code for your reference.
jQuery.ajax({
url: './content.txt>',
type: 'GET',
dataType: 'xml',
error: function (xhr, status, e) {
echo('Error: ' + e + status);
},
success: function(feed) {
self.fetchingItems = false;
echo($(feed));
jQuery(feed).find('item').each(function(i) {
nextItems.push({
text: jQuery(this).find('description').text()
});
});
// no items received, turn off ticker
if (!nextItems.length)
nextItems.push({ text: '<p class="Bad">Very Bad!</p>' });
}
});
Let me know if you have any information to solve this issue.