473,289 Members | 1,839 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,289 software developers and data experts.

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 4937
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
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
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
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
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
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
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
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
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
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...

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.