PDA

View Full Version : dynamically resizing frames


sandman
03-31-2003, 08:47 AM
I would like to dynamically resize frames from within a laszlo app. I am using LzBrowser.loadUrl() to execute the javascript which does this. If I invoke this javascript from within a HTML page it works but when I execute it from within a laszo app the frames gets correctly resized but the laszo app disappears and "10%,90%" gets printed within the frame where the laszo app should have been displayed.

Here is the HTML:

<HTML>
<HEAD>
<TITLE>Demo</TITLE>
</HEAD>
<FRAMESET rows="11%,89%">
<FRAME name="header" src="topframe.html">
<FRAMESET ID="mainBody" cols="50%,50%" frameborder="no">
<FRAME name="topLeft" src="excambriaWrapper.html">
<FRAME name="topRight">
</FRAMESET>
</FRAMESET>
</HTML>

The javascript that I am executing is:

LzBrowser.loadUrl('javascript:parent.mainBody.cols ="10%,90%"');

The laszo app is displayed in the "topLeft" frame. When the user clicks on text in the laszlo app an HTML page is displayed in the "topRight" frame and the javasccript to resize frames is also executed. As, I have stated above the laszo app disappears and "10%,90%" is displayed in the "topLeft" frame. However, the HTML page gets correctly displayed in the "topRight" frame.

antun
03-31-2003, 01:47 PM
Are you doing this in an onclick event handler?

It may be a quoting issue - have you tried:

& q u o t ;

(Without spaces - I just used them so that the browser wouldn't render it as a quote).


-Antun


LzBrowser.loadUrl('javascript:parent.mainBody.cols ="10%,90%"');

bloch
04-10-2003, 08:02 PM
Hey Antun,

I think you can do &amp;amp;quot
next time you want to show a "

(I wonder if this will come out
ok or will the forum software
muck with my quoting).

-Eric