View Full Version : Dynamic Layout with Left Tabslider
jakeh
08-17-2004, 08:37 AM
I have a tabslider on the left side of my app and when a user chooses one of the tabs(home, users, my other tabnames, etc) i want to shuffle the right side of the app to a new "page". Do i have to use html frames for this? I was trying to write a script where each tabelement called a different lzx file to include. (home.lzx, users.lzx,etc..). The reason for this is the layouts are rather complicated and very different from one another. I would rather have it load in the elements only when needed.
What is the best practices method of achieving this layout? If possible i want it to be contained within one canvas.
Thanks.
Jake
antun
08-17-2004, 09:05 AM
Do i have to use html frames for this?
No, not at all. You could have a stash of views in the right hand side of your app that are invisible until the user clicks something on the right hand side to turn them on.
I would rather have it load in the elements only when needed.
If you wanted to actually load this into the application at run-time, you could only do so if you wanted to load a resource (gif, jpeg, swf, png) into the right-hand section.
On the other hand, what I think would be more appropriate is to have all the views in the right-hand section set to initstage="defer". This means that they won't have been created when the bulk of the application starts up.
There's atip of the week on that here:
http://www.laszlosystems.com/developers/community/forums/showthread.php?s=&threadid=342&highlight=completeinstantiation
-Antun
jakeh
08-17-2004, 09:18 AM
Thanks Antun looks like thats the way i want to go, and easier than how i was trying to do it...
If I go this route is there a method to play a loading animation or percentdone routine while it is loading the elements?
Thanks.
antun
08-17-2004, 09:23 AM
If I go this route is there a method to play a loading animation or percentdone routine while it is loading the elements?
Not sure about the percentdone routine, but I think you could set some kind of animation off when you call completeInstantiation() and stop/hide it when one of the subviews of the view you called completeInstantiation sends its oninit event.
-Antun
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.