php code :
$output = $smarty->fetch('submit/grouplist.tpl');
$xajaxResponse->assign('grouplist', 'innerHTML', $output);
$xajaxResponse->includeScript('js/submit/grouplistSortable.js');
可以用下列方法去每隔10ms 偵測執行.
makeGroupListSortable = function() {
if ('undefined' == typeof $('#grouplistSortable'))
setTimeout(makeGroupListSortable, 10);
else
$('#grouplistSortable').sortable({...});
}
沒有留言:
張貼留言