Board Logo

tree_tpl.js and beforeInit / afterInit
joolzhaines - 10/13/2005 at 10:50 PM

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 - 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;
}


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/