PDA

View Full Version : Laszlo Canvas


privateer
02-01-2004, 11:58 PM
Hello,

Can a Lazlo application canvas be resized dynamically to fit the browser window or an iframe that contains the application and is scaled by the user?

Example 1: Place the Laszlo app in the left frame of a two frame window. As the browser is resized or the frame is resized by the user, dynamically resize the app canvas to fit the frame.

(The lzx-reference application has this issue, with contents and index in the left frame and the content in the right frame. Both in the vertical and horizontal directions)

Example 2: Laszlo windows "disappear" behind the edge of the canvas and before the edge of the browser viewable area. The canvas needs to scale with changes in the browser's viewable space.

This requires communication with the container. I noticed the following:

LzBrowser.loadURL ( "javascript:alert('hello world')" ) ;

Can I pass out a reference to a canvas resize function on load or call a Laszlo function from the container when I need to resize?

I am new to Lazslo having just tried the examples tonight. Laszlo looks pretty cool, but these appear to be issues.

Thanks for the help.

antun
02-02-2004, 08:56 AM
You can make the canvas stretch to the browser by writing your own wrapper page and changing the dimensions in the <object> and <embed> tags to 100%.

This will cause the whole app to stretch. However I think you want the contents of the app to remain a constant size. This isn't supported by the LPS right now because it requires the Flash player 6 (or 7 - not sure which exactly). In any case the LPS is designed to support Flash 5 and above.


This requires communication with the container. I noticed the following:

LzBrowser.loadURL ( "javascript:alert('hello world')" ) ;

Can I pass out a reference to a canvas resize function on load or call a Laszlo function from the container when I need to resize?


No - the javascript: method of calling browser JavaScript won't return anything.

-Antun

privateer
02-02-2004, 10:26 AM
Antun,

Thank you for the quick reply. I will try changing the <object> and <embed> tags to 100% and see how things look.

In our situation we need to communicate to and from the container and Laszlo. Requireing Flash 6 or 7 is fine with us.

Are there any plans to support bi-directional communication? Do you happen to know when or if a version leveraging advances in Flash can be made available seperately for those of us who cannot be bound by the Flash 5 constraint?

Thanks again.

antun
02-02-2004, 10:41 AM
Are there any plans to support bi-directional communication? Do you happen to know when or if a version leveraging advances in Flash can be made available seperately for those of us who cannot be bound by the Flash 5 constraint?


Yes, there are definitely plans to support this, but what's most important to customers is high app compatability, which dictates that the applications are not dependent on Flash 6 and 7. As the propagation of Flash 6 player increases, this is going to become more and more of a priority.

-Antun

privateer
02-02-2004, 10:54 AM
Antun,

Yes. I would have to agree with regard to a general consumption website.

In our case we can impose the requirement to have the Flash 7 plugin. I expect there will be other cases in the Intranet and Extranet world that organizations such as ourselves regularly establish minimum standards. We have done the same for IE.

I am hoping to use the Laszlo system in this kind of environment. I expect this is not your largest market.

Thanks again for the help. I'll push ahead with what we have available today and stay tuned for updates.