joolzhaines
Junior Member
Posts: 8
Registered: 8/17/2005
Member Is Offline
|
| posted on 10/13/2005 at 10:50 PM |
|
|
tree_tpl.js and beforeInit / afterInit
Hi,
Why is it that what I run the code below the 'loading..' appears but the tree does not with no Javascript error. But if I use afterInit it works
correctly with the 'loading...' after the tree as expected.
'style_68':'t1ic',
'beforeInit':'mytest'
};
function mytest(o_item)
{
document.write('Loading...');
}
thanks for your help
|
|
|
rock
Moderator
Posts: 687
Registered: 4/15/2003
Member Is Offline
|
| posted on 10/17/2005 at 09:27 AM |
|
|
To continue script processing you need to return true from the function:
function mytest(o_item)
{
document.write('Loading...');
return true;
}
|
|
|