HighDots Forums  

applet with display:none

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


Discuss applet with display:none in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chris Seidel
 
Posts: n/a

Default applet with display:none - 10-18-2009 , 11:20 AM






Hi,

I have an applet-tag in my page which loads initially with display:none.
Via a Button I can display the applet, a javascripts sets display:block.

The problem is, that IE 7 loads the applet although it is set to
dislay:none. Is this a bug? FF 3.0 does not load it.

Another problem is, that if I refresh the page sometimes the applet gets
reloaded.

Thank you

Reply With Quote
  #2  
Old   
Joshua Cranmer
 
Posts: n/a

Default Re: applet with display:none - 10-18-2009 , 01:06 PM






On 10/18/2009 11:20 AM, Chris Seidel wrote:
Quote:
I have an applet-tag in my page which loads initially with display:none.
Via a Button I can display the applet, a javascripts sets display:block.

The problem is, that IE 7 loads the applet although it is set to
dislay:none. Is this a bug? FF 3.0 does not load it.
From CSS 2.1:
(The definition of display: none)
This value causes an element to not appear in the formatting structure
(i.e., in visual media the element generates no boxes and has no effect
on layout). Descendant elements do not generate any boxes either; the
element and its content are removed from the formatting structure entirely.

Basically, display has no effect on the load of an applet. To put it
more explicitly, HTML 5 codifies this explicitly:

Note: The applet element is unaffected by the CSS 'display' property.
The Java Language runtime is instantiated even if the element is hidden
with a 'display:none' CSS style.

So, technically, FF is in violation here.

--
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth

Reply With Quote
  #3  
Old   
Chris Seidel
 
Posts: n/a

Default Re: applet with display:none - 10-18-2009 , 02:03 PM



On Sun, 18 Oct 2009 19:06:20 +0200, Joshua Cranmer
<Pidgeot18 (AT) verizon (DOT) invalid> wrote:

Quote:
Note: The applet element is unaffected by the CSS 'display' property.
The Java Language runtime is instantiated even if the element is hidden
with a 'display:none' CSS style.

So, technically, FF is in violation here.
Thank you!

Reply With Quote
  #4  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: applet with display:none - 10-18-2009 , 03:00 PM



Joshua Cranmer wrote:

Quote:
From CSS 2.1:
(Which says: "It is inappropriate to cite this document as other than work
in progress.")

Quote:
(The definition of display: none)
This value causes an element to not appear in the formatting structure
(i.e., in visual media the element generates no boxes and has no
effect on layout). Descendant elements do not generate any boxes either;
the
element and its content are removed from the formatting structure
entirely.
Basically, display has no effect on the load of an applet.
Non sequitur. The candidate recommendation says no such thing; it is silent
about the matter.

Quote:
To put it
more explicitly, HTML 5 codifies this explicitly:
- -
So, technically, FF is in violation here.
In violation of what? "HTML 5" is just a sketchy draft, purported to mainly
describe how browsers actually behave, more or less. Why would you treat it
as if it were a standard?

--
Yucca, http://www.cs.tut.fi/~jkorpela/

Reply With Quote
  #5  
Old   
dorayme
 
Posts: n/a

Default Re: applet with display:none - 10-18-2009 , 06:54 PM



In article <op.u1z4vwbvw1eelo (AT) msrvcn04 (DOT) localdomain>,
"Chris Seidel" <cseidel (AT) arcor (DOT) de> wrote:

Quote:
The problem is, that IE 7 loads the applet although it is set to
dislay:none. Is this a bug? FF 3.0 does not load it.
Setting display:none directly on the applet element has no effect in
*some* good modern browsers (Safari, iCab). But in FF and Camino it will
not display.

But setting this on an enclosing element like a DIV will cause most
browsers to be consistent.

It is not obvious what the various browsers are taking their cues from
to behave one way rather the other when the style is applied to applet
but perhaps a small clue is that the applet element is deprecated (not
just its attributes) in HTML 4

13.4 Including an applet: the APPLET element
APPLET is deprecated (with all its attributes) in favor of OBJECT.
See the Transitional DTD for the formal definition.

As for if you are *really* talking downloading as something independent
of displaying, what is your test for it dong this when the applet is not
displayed? Is it a big one and something is taking a lot of time?

--
dorayme

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.