Re: Dynamic Frame Resize
Re: Dynamic Frame Resize
- Subject: Re: Dynamic Frame Resize
- From: Michael Krone <email@hidden>
- Date: Fri, 11 Dec 2009 09:11:26 +0100
- Organization: HELIOS Software GmbH
Hello Raghavender,
I see, assuming you have got a frameset like this:
<frameset rows="110,*">
<frame src="about: blank" name="frame1a">
<frameset rows="40%,*" id="frameToHide">
<frame src="about: blank" name="frame2a">
<frameset cols="55%,*">
<frame src="about: blank" name="frame3a">
<frame src="about: blank" name="frame3b">
</frameset>
</frameset>
</frameset>
then you could access the frame in question by
"parent.document.getElementById('frameToHide')" from the uderlying frame.
So you just need to update the
"parent.document.getElementById('frameToHide')".rows" property. It may
be the simplest method to define an ID and access the frame by its ID.
Hope this works for you.
Raghavender schrieb:
Hi Micheal,
Thanks a lot for your response, even I agree with your opinion, but
due to time constraint and lot of code dependency I am not removing the
frames right now.
"parent.document.body.rows" is returning "110,*" i.e., its like
parent.parent. frameset rows. But not the "40%,*" frameset rows.
I tried just with "document.body.rows" to get the immediate frameset
rows(40%,*), but its giving 'undefined' error.
Regards,
Raghavender.
On 10-Dec-09, at 9:44 PM, Michael Krone wrote:
parent.document.body.rows?
I agree with Mikes opinion. I HATE frames for a bunch of reasons, but
if you had to stick witch frames maybe trigger a function like
function showParentFrame(show) { /* not tested! */
parent.document.body.rows = (show ? "40%, *" : "1, *");
}
Mike Schrag schrieb:
why not make these scrollable divs wrapped in update containers? it
would be way easier to manage this and cause less weirdness in WO
than frames.
On Dec 10, 2009, at 10:33 AM, Raghavender wrote:
Hi,
I am working on WebObjects application, using
AjaxUpdateContainers (ProjectWonder). I have a web page that has
the following structure:
I have to dynamically show or not show a parent frame from a
child frame based on some condition. Doing Ajax submit from a child
frame, not updating the complete frames, updating only a portion of
the frames.
---------------------------------------------------------------------------------------------------
<Frameset rows="110,*">
<Frame>
<Frameset rows="40%,*> [Needs to update this frameset]
<Frame> [Need to disable this frame,
based on conditional I have to show or not show this frame]
<Frameset cols="55%,*">
<Frame> [From this frame,
based on the conditional, using script I have to disable the above
frame]
---------------------------------------------------------------------------------------------------
How to get the reference of parent frame and show or not show
the parent frame. Any help would be appreciated.
Thanks in advance.
Raghavender.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden