473,509 Members | 2,763 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 4945
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.html" name="center" width="100%"
height="100%" frameborder="0" allowtransparency="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.html" name="center" width="100%"
height="100%" frameborder="0" allowtransparency="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.html" name="center" width="100%"
height="100%" frameborder="0" allowtransparency="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
3203
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...
1
1882
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...
18
2128
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...
16
1810
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'...
15
2230
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)...
1
1386
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...
5
7343
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"...
4
10274
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...
23
6541
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...
0
7135
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...
0
7342
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7410
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...
1
7067
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...
0
7505
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...
0
5650
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,...
0
4729
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3215
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...
0
1570
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 ...

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.