HighDots Forums  

iframe and onload

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss iframe and onload in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
removeps-groups@yahoo.com
 
Posts: n/a

Default iframe and onload - 09-12-2008 , 01:40 PM






Hi. Is iframe supposed to have an onload event? Many documents in
google have examples of this method. It works in Mozilla 2. However,
http://www.w3schools.com/TAGS/tag_iframe.asp does not have it. If it
not supposed to be there, why is that, and what is the workaround?

Reply With Quote
  #2  
Old   
David Stone
 
Posts: n/a

Default Re: iframe and onload - 09-12-2008 , 02:22 PM






In article
<f78a683a-618e-4bab-91f7-ab629c3f80cf (AT) 1g2000pre (DOT) googlegroups.com>,
"removeps-groups (AT) yahoo (DOT) com" <removeps-groups (AT) yahoo (DOT) com> wrote:

Quote:
Hi. Is iframe supposed to have an onload event? Many documents in
google have examples of this method. It works in Mozilla 2. However,
http://www.w3schools.com/TAGS/tag_iframe.asp does not have it. If it
not supposed to be there, why is that, and what is the workaround?
You could always go to the source:
http://www.w3.org/TR/html401/present/frames.html#h-16.5

Note that w3schools.com != w3.org...


Reply With Quote
  #3  
Old   
removeps-groups@yahoo.com
 
Posts: n/a

Default Re: iframe and onload - 09-12-2008 , 06:43 PM



On Sep 12, 11:22 am, David Stone <no.em... (AT) domain (DOT) invalid> wrote:

Quote:
You could always go to the source:
http://www.w3.org/TR/html401/present/frames.html#h-16.5
All right, so onload is not part of iframe. Any reasons why that
might be?


Reply With Quote
  #4  
Old   
removeps-groups@yahoo.com
 
Posts: n/a

Default Re: iframe and onload - 09-15-2008 , 07:01 PM



On Sep 12, 10:40 am, "removeps-gro... (AT) yahoo (DOT) com" <removeps-
gro... (AT) yahoo (DOT) com> wrote:

Quote:
Hi. Is iframe supposed to have an onload event? Many documents in
google have examples of this method. It works in Mozilla 2. However,http://www.w3schools.com/TAGS/tag_iframe.aspdoes not have it. If it
not supposed to be there, why is that, and what is the workaround?
The other strange thing about iframe, at least on my browser, is that
it must have body content.

That is

<iframe id="myframe" frameborder="1" marginheight="-10"
marginwidth="0" src="test1.html" style="display:block; margin-bottom:
3em" onload="myframeFullHeight()"/>

does not display right on Mozilla 2. Everything after the iframe is
cut out. But

<iframe id="myframe" frameborder="1" marginheight="-10"
marginwidth="0" src="test1.html" style="display:block; margin-bottom:
3em" onload="myframeFullHeight()"></iframe>

does work


Reply With Quote
  #5  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: iframe and onload - 09-15-2008 , 07:48 PM



removeps-groups (AT) yahoo (DOT) com wrote:
Quote:
On Sep 12, 10:40 am, "removeps-gro... (AT) yahoo (DOT) com" <removeps-
gro... (AT) yahoo (DOT) com> wrote:

Hi. Is iframe supposed to have an onload event? Many documents in
google have examples of this method. It works in Mozilla 2. However,http://www.w3schools.com/TAGS/tag_iframe.aspdoes not have it. If it
not supposed to be there, why is that, and what is the workaround?

The other strange thing about iframe, at least on my browser, is that
it must have body content.

That is

iframe id="myframe" frameborder="1" marginheight="-10"
marginwidth="0" src="test1.html" style="display:block; margin-bottom:
3em" onload="myframeFullHeight()"/

does not display right on Mozilla 2. Everything after the iframe is
cut out. But

iframe id="myframe" frameborder="1" marginheight="-10"
marginwidth="0" src="test1.html" style="display:block; margin-bottom:
3em" onload="myframeFullHeight()"></iframe
It doesn't have content either way you used it above. Content would be
what you put *between* the tags, if you had put anything there. Yes, the
end tag is required, and unless you're delivering your page as XHTML,
the trailing slash is meaningless to the browser, so that <tag/> is
identical to <tag> from its perspective.

Further, if you did include content in your iframe, it would display in
a conforming browser if the browser didn't support iframes or if it were
configured not to display them. See

http://www.w3.org/TR/html401/present/frames.html#h-16.5


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.