Привет.
Есть вопрос по jqueryFileTree ( его использует расширение cfilebrowser для Yii)
По каким причинам не отображается это дерево, если в качестве генератора узлов указывается
/akestrel/index.php?r=site/browser’
//<![CDATA[
jQuery(document).ready(function() {
jQuery(’#browsers’).fileTree({
root: ‘demo/’,
script: ‘/akestrel/index.php?r=site/browser’,
folderEvent:‘click’,
expandSpeed:1000,
collapseSpeed:1000,
multiFolder:true,
expandEasing:‘easeOutBounce’,
collapseEasing:‘easeOutBounce’,
loadMessage:‘File Browser Is Loading…hang on a sec’
}, function(f){
alert("I selected " + f); });
});
//]]>>
тогда как вариант c browser.php (который лежит рядом с index.php)
//<![CDATA[
jQuery(document).ready(function() {
jQuery(’#browsers’).fileTree({
root: ‘demo/’,
script: ‘browser.php’,
folderEvent:‘click’,
expandSpeed:1000,
collapseSpeed:1000,
multiFolder:true,
expandEasing:‘easeOutBounce’,
collapseEasing:‘easeOutBounce’,
loadMessage:‘File Browser Is Loading…hang on a sec’
}, function(f){
alert("I selected " + f); });
});
//]]>>
работает
?