473,624 Members | 2,510 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

resizing nested iframes - help!!!

helpmepls
5 New Member
i have a site where I have an iframe mainFrame which loads page content from the main menu (top horizontal menu).

within this mainFrame is a second menu to left specific to the loaded page, and another iframe (ie. suppFrame) which loads content from this left menu. The reason for the second iframe is some of the pages have different left menus.

this works fine, apart from resizing of the page. I do not wish to use scroll bars. Say if I click on the Support page in the main menu, the initial page loads and resizes fine. But if I wish to click one of the left menu options to load in the suppFrame this stays the same size as the intially loaded page and does not stretch/shrink to suit the new content.

Does anyone know how to efficiently resize nested iframes? or have a better solution?

i tried creating multiple pages for the main menu with includes for header, left menu etc. but you get that horrible flash when the page reloads, the iframe seems more seamless to the user.

thanks!
Mar 13 '08 #1
1 2687
helpmepls
5 New Member
Just thought I'd share what I ended up doing for this one (in ASP.NET VB):

I now have a master page with the header built in including a logo, image and the main menu. The master page then has two contentplacehol ders, one on left for the submenu and one to the right for the body page. The master also has the resize iframe code from Dynamic Drive: http://www.dynamicdrive.com/dynamici...iframessi2.htm

I have a Default.aspx based on this master. The left contentplacehol der has content as an iframe named menuFrame and the right contentplacehol der has content as an iframe named bodyFrame.

I found a cool javascript that loads content into two iframes at once. I included it in the master page. Now I only need that default.aspx page to control the site, and the htm pages to load in the iframe and it loads smoothly.

Expand|Select|Wrap|Line Numbers
  1. <script language="javascript"> 
  2. function loadTwo(iframe1URL, iframe2URL) 
  3. parent.menuFrame.location.href=iframe1URL 
  4. parent.bodyFrame.location.href=iframe2URL 
  5. </script> 
and the link to open the page will be
Expand|Select|Wrap|Line Numbers
  1. <a href="javascript:loadTwo('[content for first iframe],'[content for second iframe]')"> link </a>
here's the site I got that from:
http://www.samisite.com/test-csb2nf/id82.htm


Hope this is useful for someone else as I searched high and low to find a solution!
Mar 18 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
3769
by: Grigore Marinescu | last post by:
Hi all, I have the following databasedesign : www.marinescu.dk/databasedesign.pdf which i have a nested SELECT on but i need some more information which i don't know how to retrieve. I have the following SELECT : SELECT DISTINCT Resource.ResourceID, Localized.ResourceValue, Localized.Font, Resource.ResourceName, Resource.Comment, Type.TypeName FROM
3
2706
by: Tommy | last post by:
I have been working on getting nested repeaters to work for several days. When I add a repeater inside my item template i cannot see it in my code and can't set the datasource for it, etc, thus it's useless. Anytime i try to reference rptChild I get an error saying that it's not an object. If I set a break point I see that it's <nothing>. Here is a sample of code that shows the problem. I would REALLY appreciate any help on getting...
14
3323
by: Tiraman | last post by:
Hi , I would like to use nested namespace . I have 3 namespace as dll's : Namespace A Namespace B Namespace C And i want to have some namespace that contain them all , some thing like
4
2265
by: Alex D. | last post by:
Hi guys. I have two nestes IFRAMES in one of my pages. The main page has an Iframe that points to an aspx page, this page has another Iframe that points to a regular html file. My problem is when resizing the IE window I loose the inner Iframe, it disappears for some reason. Any ideas?? Thanks a lot, Alex.
3
1929
by: tzuriel | last post by:
Hello all, I think nested loops will do what I want, but I can't seem to get them right. I have two tables, members and casts. I run a query as follows: $sql_query="SELECT DISTINCT casts.yearID, members.memberName" . " FROM members INNER JOIN casts ON members.memberID = casts.memberID"
3
4479
by: PCgeek | last post by:
sorry moved this over to javascript forum, didn't mean to post 2x! Hi guys, I'm trying to put the finishing touches on my website and could really use some help on this particular issue. My page includes background music with a javascript music player on the main page below an iframe that is used for all content and navigation of the site and so that the music doesn't reload each time a page is switched. There is another javascript to resize...
0
4656
by: sharonrao123 | last post by:
hello all, I have a parent gridview company and in this one a nested gridview people, Is it possible to allow the user to select one row or multiple rows from the people gridview using a check box and also get the datakey (in my case personid) of the the rows selected. Please point me in the right direction. This is what i have so far but i have problem accessing the child gridview in the button click event Cheers, Shilpa. <asp:GridView...
0
8231
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8168
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8330
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7153
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6107
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4075
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4167
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1474
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.