PDA

View Full Version : Dynamic creation of components


shyam
03-31-2004, 09:18 PM
Hai

My page is divided in to two frames.Left frame for menu (implimented as tab slider & tab elements) and Right frame for displaying appropriate data.
When i click on any item in menu (in the left hand side), appropriate data (.lzx) is shown in the right hand frame.

I want my menu (on the left )to be changed dynamically ,according to the action on the right hand side.how i can do this.

How can i create,delete & change the visibility of components(tab elements) in one .Lzx according to the changes in another .Lzx provided both .Lzx are loaded in different frames of same HTML page

thanks in advance
shyam

antun
04-01-2004, 08:58 AM
Hi Shyam

Right now the way you might be able to do this would be to have any changes that happen to the content in the right frame update a reference on the server, and have the Laszlo app in the left hand frame poll the server frequently to check for updates.

The problem I could forsee would be that depending on how the browser was configured, it might not send requests if the user was to use the back button. Then the server wouldn't update the reference to where the right frame was and the two would be out of sync.

You might be able to get around this using browser JavaScript to save a cookie on each page in the content area, and have the Laszlo app poll the server, and read off the cookie that was set when the response came back.

If this all sounds very clunky, you might want to know that better browser integration will be coming in a future release of the LPS which should make what you're trying to do a lot easier.

-Antun

antun
04-01-2004, 09:00 AM
I didn't read this bit quite right the first time. I thought that the right frame would contain HTML pages. If its a Laszlo app in the right frame you could manually poll the server to update some referecne when there was a user action in the right hand frame.

-Antun

How can i create,delete & change the visibility of components(tab elements) in one .Lzx according to the changes in another .Lzx provided both .Lzx are loaded in different frames of same HTML page