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: Select after reload ??
afortaleza
Newbie

Posts: 1
Registered: 9/12/2003
Member Is Offline
posted on 9/12/2003 at 04:51 PM Reply With Quote
Select after reload ??


I have a tree that is the mirror of my database driven filesystem.
I'm following the steps:

1) Add a new leaf to the database.
2) Reload the page where the TM is
3) Select the new leaf (by ID) created

I do:
...location.reload()
...my_tree.select(<%=newID%>)

The problem is that the reload() takes some time to generate the tree and while being generated it executes the my_tree.select(), therefore it never can find the New Created Leaf because it's still being processed.

My question is, is there any way to select a leaf only after the process of buiding a tree is complete ? My approach now (to have more time to process) is to show to the user a window.alert() message, but it relies completly on the computer the user is using, if it's a slow enough PC my approach will fail.

I saw the thread about this but this thread didn't help me because I'm selecting by ID, and I couldn't see any solution for my problem in that thread.

I appreciate your help, thank you
Anderson Fortaleza
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 9/17/2003 at 08:44 AM Reply With Quote

You can use afterInit handler function to call your custom function after the process of buiding a tree is complete .
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