473,796 Members | 2,482 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problems with iframe rendering

Hi,

I have googled on this but can't find the answer. I am writting a page
that will be viewed with Firefox .9 or >, and mainly with IE 6, where I
need to update pieces of the page without updating the whole page. I was
going to do it with <OBJECT ...> but realized that the support in IE6 is
terrible, so decided to do it with <IFRAME...>.

My problem is that there is a huge blank space left inside the iframe
body, under its content, that I can't seem to get rid of. Look at this:

a.html:
<html>
<head></head>

<body>
<table border=1>
<TR><TD>first col<TD>second col><TD>third col>
</table>
</body></html>

main.html:
<html>
<head></head>

<body>
<p>blahblahblah </p>

<div>
<iframe src=a.html type="text/html"></iframe>
</div>

<div>
<iframe src=a.html type="text/html"></iframe>
</div>

<div>
<iframe src=a.html type="text/html"></iframe>
</div>

</body></html>
I've played with vspace, framemargin, margin, padding, etc, etc, etc and
tried all of those attributes on the iframe tag, the div tag and on the
body tag of a.html, but I always get this huge space under the table row.
I want the table rows to be glued to each other. I can't use height=
because a.html will be of different sizes that I cannot predict, and I
don't want scroll bars....

I know that the problem is that the body of a.html is too big (this is
easy to show by putting different colours with bgcolor in the body
and the table tag), but I don't know how to fix.

Any idea ? Thanks !
Yves.
----
http://www.cuug.ab.ca/dorfsmay
http://www.SollerS.ca

Jul 23 '05 #1
1 5782
no spam wrote:
I have googled on this but can't find the answer. I am writting a page that will be viewed with Firefox .9 or >, and mainly with IE 6, where I need to update pieces of the page without updating the whole page. I was going to do it with <OBJECT ...> but realized that the support in IE6 is terrible, so decided to do it with <IFRAME...>.

My problem is that there is a huge blank space left inside the iframe body, under its content, that I can't seem to get rid of. Look at this:
...
Any idea ? Thanks !


I'd suggest you look into using the XML HTTP Request object and
Javascript to dynamically update the pieces in question.
http://jibbering.com/2002/4/httprequest.html is a good place to start
reviewing how to do this.

If you're dead set on using <iframes>, you could:

1) Assign each <iframe> an "id" attribute.

2) In the iframed document, compute the height and set the iframe's
height in the parent document.
(parent.documen t.getElementByI d("iframe_id"). style.height =
this.document.b ody.offsetHeigh t). onload() would be a good place to
place your code,

3) Make sure the iframes have 0 margin, no border, and scrolling off.

This would probably break if the user resized fonts, which is why I'd
go with XML HTTP request.

Good luck!

--
niall

Jul 23 '05 #2

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

Similar topics

12
9803
by: Javier | last post by:
Hello, I'm very new in this forum and as I have the following problem, the website is in http://new.vanara.com ---------------------------------------------------------------------------- -------------------------------------------- Here's how the site works: You should press a button in the rollover area in order to load a source file on an Iframe, this Iframe is actually hidden working as a Buffer. The body of this loaded Iframe is...
28
4102
by: Christopher Benson-Manica | last post by:
I have the following document, at http://ataru.gomen.org/file/test.html: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Test</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head>
1
3847
by: John Cosmas | last post by:
I had a page using iFrame and was able to control the contents of the document inside of the iFrame. I took the same document, converted it into a ASPX, and changed the iFrame to a Panel. I took the inset document and changed it into an ASCX. Both pages are rendering correctly, but I'm not able to update the iFrame/Panel document - the older version had header information on the parent page, and the child page inside the iFrame...
2
3470
by: J-T | last post by:
Hello, I have an iframe which its scr is set to show a url (am image) .I am put this iframe on a user control and I am loading that user control dynamically to my Default.aspx.Now I need to refresh the content of the iframe every 2 minutes .I used a java script code in user conrol ,the referesh happens but the content of the iframe dosen;t get changed,I mean it dosen;t get refresh! How can I do that?
20
2584
by: Alan Silver | last post by:
Hello, I have read about the problems that IE has when using a doctype of HTML 4.01 Transitional. I was advised to use Strict wherever possible. My question is, does the same apply to XHTML 1.0 Transitional? I develop sites using ASP.NET, which emits valid XHTML 1.0 Transitional, but not XHTML 1.0 Strict (for example, it includes a hidden form field with the name of _VIEWSTATE, which isn't valid in Strict, but is in Transitional).
3
4489
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...
3
2628
by: Prasad | last post by:
Hi , I am using a cross domain iframe in my page.. If i want to change the iframe height a/c to its content height , its giving Permission denied error as i am trying to access a function, which changes an iframe's height, in the parent window ... So Is there any way to change its height from the iframe itself???????
4
2291
by: R144N | last post by:
Hi Everyone, I've searched variuos forums as much as I could for a similar problem within the time I could and found no helpful solution, I hope someone here can help me out: I have an iFrame issue in all Mozilla browsers where the text appears to be like strikethrough text but it is definitely a rendering issue. I have tried iFrame and Object tags as advised on w3c.org but alas, the same problem. Is this a bug in Mozilla? and if so, is...
4
3200
by: raymon | last post by:
Hi, I have a page with two iframes that load content from another website. Only one of the iframes is shown at a time, depending on which tab the user is viewing. If user clicks on tab A, he will see iframe A. Same for tab B. Users arrive to the page via POST. Sometimes they see iframe A, sometimes they see iframe B, depending on the inputs in the previous page. Both iframes are loaded when arriving to the page, but only one is shown. ...
0
10452
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10003
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
9050
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
7546
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
6785
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5440
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...
1
4115
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
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
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.