2011-09-12 16 views
0

私のページにサイクルプラグインを設定し、ijaxを通してページに動的コンテンツを呼び出しています。私はこのコンテンツをdivに入れてプラグインを実行しています。問題は、ページをロードするときに完全に動作し、ページをリフレッシュしても全くロードされないことです。Jquery Cycle Plugin、ダイナミックAjaxスライドの読み込み問題

提案がありますか?

$.ajax({ 
    url: "http://www.site.co.uk/cgi-bin/latest-instructions-2.pl", 
    success: function(html){ 
    $("#slider").html(html); 
    } 
}); 
$('#slider').cycle({ 
    fx: 'scrollLeft', 
    cleartype: true, 
     cleartypeNoBg: true, 
     pager: '#li-number2', 
     requeueOnImageNotLoaded: true 
}); 

答えて

0

私はページが私は単にそう...

$(window).bind("load", function() { 
$('#slider').cycle({ 
    fx: 'scrollLeft', 
    cleartype: true, 
     cleartypeNoBg: true, 
     pager: '#li-number2', 
     requeueOnImageNotLoaded: true 
}); 
}); 
として、ウィンドウのonload関数を追加ロードしていた前に、スライダーを実行していた、私が間違ってやっていたかを把握するために管理