• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dynamic Frame Resize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamic Frame Resize


  • Subject: Re: Dynamic Frame Resize
  • From: Raghavender <email@hidden>
  • Date: Fri, 11 Dec 2009 23:44:21 +0530

Thanks a lot Michael, this worked for me.

I tried to set the frameborder of the frameToHide(Frameset) to zero, but this doesn't seems to be working in Safari 4.0.3 whereas this is working in IE 7.

	 parent.document.getElementById('frameToHide').frameborder = 0

Regards,
Raghavender.

On 11-Dec-09, at 1:41 PM, Michael Krone wrote:

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


References: 
 >Dynamic Frame Resize (From: Raghavender <email@hidden>)
 >Re: Dynamic Frame Resize (From: Mike Schrag <email@hidden>)
 >Re: Dynamic Frame Resize (From: Michael Krone <email@hidden>)
 >Re: Dynamic Frame Resize (From: Raghavender <email@hidden>)
 >Re: Dynamic Frame Resize (From: Michael Krone <email@hidden>)

  • Prev by Date: Issue with Ajax Update(ProjectWonder)
  • Next by Date: AJAX UpdatePanel component in Project Wonder?
  • Previous by thread: Re: Dynamic Frame Resize
  • Next by thread: OGNL binding validation problems
  • Index(es):
    • Date
    • Thread