在Joomla網站我正在使用此代碼加載使用Ajax的網頁:在index.php這個jQuery的AJAX負荷和淡入的Joomla
jQuery(document).ready(function(){
jQuery("#<?php echo $item->alias; ?>").click(function(){
jQuery('#interno').fadeOut(500, function ck_load(){
jQuery('#principale').load('<?php echo $ck_link; ?> #interno', function ck_fade_in() {
jQuery('#interno').fadeIn(3000);
});
});
});
});
是的DIV的結構:
...
<div id="principale">
<div id="interno">
// Here is loaded the page from the component
</div>
</div>
它工作並加載淡出容器div(#interno)後的頁面;但最終的回調函數不生效(fadeIn)和頁面加載沒有任何淡入效果......你能幫我弄清楚這一點嗎?
'jQuery(document).ready(function($){'然後使用'''而不是'jQuery'。 – 2013-04-04 16:59:32
仍然不能正常工作...問題應該在其他地方... – 2013-04-04 19:45:05