$.post breaks Cycle Plugin
I'm working with a Drupal site and am trying to stay within the results of a Drupal view. I'm using Cycle to rotate through a bunch of images created by this view, and I want to use an ajax "page refresh" to check for new content. I get the new content just fine, but then cycle breaks. Here is my function:
function ajaxRefresh(){
$.post('my_site',
function(data){
$('.view-content').cycle('pause');
view = $(data).children().html();
$('.view').empty().append(view);
$('.view-content').cycle('resume');
}
);
}
Other notes: The html returned is of identical structure, but with updated content. No JS errors are created.
Any Suggestions? Thanks.