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

Home Posts Topics Members FAQ

Another iFrame question

I have searched NUMEROUS sources in an effort to find the magic
(script, styles, syntax, etc.) that will allow me to create a web page
with the following format:

|----------------------------------------------------------------|
| Discrete table used as 'banner' |
| DONE! |
|----------------------------Table 1-----------------------------|

|----------------------------------------------------------------|
| |---------------------------------------------| |
| | Nested tables 2 and 3 used as 'menu bar' | |
| DONE! |----------------Table 3----------------------| |
|--------Table 2-------------------------------------------------|

|-----------------------Table 4----------------------------------|
| |--Col A----|--------Col B-----------------------------------| |
| | <td> | |---------iFrame------------------------------|| |
| | W = 25% | | W = 100% || |
| | H = 100% | | iFrame serves as 'target' for links in Col A|| |
| | | | iFrame height NOT DONE!! || |
| |Java-driven| |---------------------------------------------|| |
| | menu here | | | |
| | serves as | <td> |Dynamically adjusts | |
| | nav page! | W = 75% |to size of web page | |
| | | H = 100% |called by links on left| |
| | DONE! | DONE! V | |
| |-----------|------------------------------------------------| |
| |
|----------------------------------------------------------------|

All aspects of this layout work... except the height of the iFrame! I
want the iFrame to FILL THE TABLE CELL -- dynamically adjusting to the
height of the iFrame to accommodate the height of the document 'called'
by the link in Col A ('Nav Page'). It does not. (Clicking a link on
the Nav menu in Col A DOES load the desired web page into the iFrame.)
Setting the iFrame height attribute to 100% makes the iFrame
inoperative/invisible.

Is there a way to make the iFrame fill the table cell -- or am I trying
to do 'Mission Impossible'?? Any suggestions from this collective body
of wisdom??? Help/Guidance would be appreciated!

gary b

Jul 24 '05 #1
6 4954
SF RVN wrote:
I have searched NUMEROUS sources in an effort to find the magic
(script, styles, syntax, etc.) that will allow me to create a web page
with the following format:

|----------------------------------------------------------------|
| Discrete table used as 'banner' |
| DONE! |
|----------------------------Table 1-----------------------------|

|----------------------------------------------------------------|
| |---------------------------------------------| |
| | Nested tables 2 and 3 used as 'menu bar' | |
| DONE! |----------------Table 3----------------------| |
|--------Table 2-------------------------------------------------|

|-----------------------Table 4----------------------------------|
| |--Col A----|--------Col B-----------------------------------| |
| | <td> | |---------iFrame------------------------------|| |
| | W = 25% | | W = 100% || |
| | H = 100% | | iFrame serves as 'target' for links in Col A|| |
| | | | iFrame height NOT DONE!! || |
| |Java-driven| |---------------------------------------------|| |
| | menu here | | | |
| | serves as | <td> |Dynamically adjusts | |
| | nav page! | W = 75% |to size of web page | |
| | | H = 100% |called by links on left| |
| | DONE! | DONE! V | |
| |-----------|------------------------------------------------| |
| |
|----------------------------------------------------------------|

All aspects of this layout work... except the height of the iFrame! I
want the iFrame to FILL THE TABLE CELL -- dynamically adjusting to the
height of the iFrame to accommodate the height of the document 'called'
by the link in Col A ('Nav Page'). It does not. (Clicking a link on
the Nav menu in Col A DOES load the desired web page into the iFrame.)
Setting the iFrame height attribute to 100% makes the iFrame
inoperative/invisible.

Is there a way to make the iFrame fill the table cell -- or am I trying
to do 'Mission Impossible'?? Any suggestions from this collective body
of wisdom??? Help/Guidance would be appreciated!

gary b

Well.... I have had no luck with this either. I've tried using both CSS
and <iframe> attributes to set the height to percentages of the table
cell. I've also tried using various tweaks to size it via margins (CSS).
Nothing has worked. I'm not sure that it is possible. If I am wrong,
though, I'd love the answer as well...

--
Grant Smith
A+, Net+, MCP x 2

eNVENT Technologies - www.envent-tech.com
Jul 24 '05 #2
Grant Smith - eNVENT Technologies wrote:
Well.... I have had no luck with this either. I've tried using both CSS and <iframe> attributes to set the height to percentages of the table cell. I've also tried using various tweaks to size it via margins (CSS). Nothing has worked. I'm not sure that it is possible. If I am wrong,
though, I'd love the answer as well...

--
Grant Smith
A+, Net+, MCP x 2

eNVENT Technologies - www.envent-tech.com


One website I use for a reference states that the value for the height
attribute (of an iFrame) can only be given in 'px' -- that may explain
why the iFrame "disappears " when I used height="100%". And I did find
some code that claims to adjust the iFrame height... but I've not been
able to get it to work. Another website states that dynamic adjustment
of the iFrame is possible --- using code to get (and pass) the height
of the 'loaded' document to the iFrame. Whew... seems like a lot of
work -- and beyond my capabilities.

The only way to work around (ignore!) the issue is to specify a height
for the iFrame (pixels only!) that is long enough to accommodate all
possible loaded pages. It works... you just have to ignore the extra,
blank turf at the bottom of the parent page.

I hate to give up on this. I like the 'feel' and the layout. But I
see no 'user friendly' solution. Anyone run across a 'how to' in your
travels??

gary b

Jul 24 '05 #3
SF RVN wrote:
Grant Smith - eNVENT Technologies wrote:
Well.... I have had no luck with this either. I've tried using both CSS
and <iframe> attributes to set the height to percentages of the table
cell. I've also tried using various tweaks to size it via margins (CSS).
Nothing has worked. I'm not sure that it is possible. If I am

wrong, though, I'd love the answer as well...

--
Grant Smith
A+, Net+, MCP x 2

eNVENT Technologies - www.envent-tech.com


One website I use for a reference states that the value for the

height attribute (of an iFrame) can only be given in 'px' -- that may explain why the iFrame "disappears " when I used height="100%". And I did find some code that claims to adjust the iFrame height... but I've not been able to get it to work. Another website states that dynamic adjustment of the iFrame is possible --- using code to get (and pass) the height
of the 'loaded' document to the iFrame. Whew... seems like a lot of
work -- and beyond my capabilities.

The only way to work around (ignore!) the issue is to specify a height for the iFrame (pixels only!) that is long enough to accommodate all
possible loaded pages. It works... you just have to ignore the extra, blank turf at the bottom of the parent page.

I hate to give up on this. I like the 'feel' and the layout. But I
see no 'user friendly' solution. Anyone run across a 'how to' in your travels??

gary b


I've had that same trouble i believe when i started this page, but this
is my iframe section that i got to work. Hopefully it is of some use.

<td width="600" height="100%" rowspan="4" align="left" valign="top">

<iframe src="content.ht ml" name="center" width="100%"
height="100%" frameborder="0" allowtransparen cy="true">

<!-- Alternate content for non-supporting browsers -->

<p>Oops your browser doesn't like Inline Frames sorry...</p>

</iframe>

</td>

Jul 24 '05 #4
Thanks for the lead, Morgan...

Unfortunately, that did not work. I have a couple other ideas. If I
have any success, I'll post back to the group.

Thanks again for your suggestion.

gary b
morgan goose wrote:

I've had that same trouble i believe when i started this page, but this is my iframe section that i got to work. Hopefully it is of some use.
<td width="600" height="100%" rowspan="4" align="left" valign="top">

<iframe src="content.ht ml" name="center" width="100%"
height="100%" frameborder="0" allowtransparen cy="true">

<!-- Alternate content for non-supporting browsers -->

<p>Oops your browser doesn't like Inline Frames sorry...</p>
</iframe>

</td>


Jul 24 '05 #5
SF RVN wrote:
Thanks for the lead, Morgan...

Unfortunately, that did not work. I have a couple other ideas. If I
have any success, I'll post back to the group.

Thanks again for your suggestion.

gary b
morgan goose wrote:
I've had that same trouble i believe when i started this page, but


this
is my iframe section that i got to work. Hopefully it is of some


use.
<td width="600" height="100%" rowspan="4" align="left" valign="top">

<iframe src="content.ht ml" name="center" width="100%"
height="100%" frameborder="0" allowtransparen cy="true">

<!-- Alternate content for non-supporting browsers -->

<p>Oops your browser doesn't like Inline Frames


sorry...</p>
</iframe>

</td>


I suppose I could contrive a way to tell my html pages via PHP how big
to make the Iframe and it wouldn't be that hard. If I have a chance to
play around, I'll post the results.

--
Grant Smith
A+, Net+, MCP x 2

eNVENT Technologies - www.envent-tech.com
Jul 24 '05 #6
Problem has been resolved!! The solution was to take the iFrame out of
the layout table (!) and then apply a script that actually resizes the
iFrame(!). This excellent script (along with some others) can be found
here:

http://www.dynamicdrive.com/dynamici...iframessi2.htm

A 'tip-o-the-hat' to DynamicDrive and thanks to all for their input.

Cheers!

gary b

Jul 24 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3210
by: Dany P. Wu | last post by:
Hi everyone, I am trying to create a site with pages containing iframes. This is the first time I've used inline frames and am still struggling with the concept. This site will have 10 pages and so far I have created 20 files, each page having to use a pair of files. One file for the actual page, and one file for the content of the inline frame. It sounds bloody silly to me but then again I am only a beginner at web
1
1889
by: James Wallace | last post by:
I need to know how to change the src property of an iframe from script that is executed in another iframe with both of these iframes being contained on a document which is then contained by another frame. I have done a bunch of searching on these groups all to no avail. I am new to javascript and learning so if someone can help me with this I would appreciate it.
18
2139
by: J-T | last post by:
Hi All, There is a picture on the following URL which I want to have it in one of my asp.net pages .I mean I want to embed the content of this page in my own page and get its image.Is there a control or tecnique which I can accomplish this? http://www.tehrantraffic.com/gif.asp?g=cam3_ttcc_00001.jpg&t=TTCC%20website Thanks a lot
16
1825
by: Phlip | last post by:
Javascripters: I have a page with an iframe inside. Let's say the iframe looks like this: <script src="/javascripts/prototype.js" type="text/javascript" /> .... <iframe id='grinder' src='sample.html' > </iframe> That prototype.js gives us goodies like $(). And sample.html looks a little
15
2247
by: Phlip | last post by:
Javascripters: I have an outer page and an inner iframe. The outer page calculates some javascript, and wants the inner frame to run it. The inner frame should hit a page on the same (private) web server, so this is not a cross-site scripting attack. But I would prefer not to taint the target page with any extra logic to do this. (I will if I must.) The calling page has these elements:
1
1392
by: totalstranger | last post by:
Has anyone found a reasonable, simple way to determine the height of variable length embedded data in a cross-domain IFRAME? I'm not interested in reading or viewing the data in the IFRAME, I simply want to make sure it's displayed without a scrollbar. To date all my efforts have been rejected with a security violation, although I can set the proper IFRAME height when it's on the same domain. Therefore, I've been forced to place the...
5
7352
by: BerlinBrown | last post by:
Do you know if it is possible to wait for the iframe page to load and then manipulate the iframe DOM. E.g. mypage: <script> function myinit() { theiframe.location = "iframe_with_frames.html" waitforiframe() { theiframe.frames.location ="mynewpage3.html";
4
10289
by: sreenath1977 | last post by:
HI, I am trying to display the content of a iframe in a div tag so that I can control the size of the display dynamically. The problem here is that the domain are different for parent window and the iframe content. Code : ===== var x=document.getElementById('myIFrame'); try{ x = x.contentWindow.document.body.innerHTML }catch (e){
23
6581
by: vunet | last post by:
It is recommended by some sources I found to create IFrames in IE using document.createElement('<iframe src="#">') instead of document.createElement('iframe'). Why and what browser versions to use it? IE5 or IE6? Thanks
0
8233
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
8619
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8334
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
8474
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
7158
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...
0
4078
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
4173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2604
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1482
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.