Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: tree_tpl.js and beforeInit / afterInit
joolzhaines
Junior Member

Posts: 8
Registered: 8/17/2005
Member Is Offline
posted on 10/13/2005 at 10:50 PM Reply With Quote
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
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 10/17/2005 at 09:27 AM Reply With Quote

To continue script processing you need to return true from the function:
function mytest(o_item)
{
document.write('Loading...');
return true;
}
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Multiple Trees
Frames Targeting
Icons and Styles Overloading
Event Handling
Performance Test
Version 1.2 features
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004