![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
ich möchte ein Applet nur laden, wenn der Benutzer das anklickt. Hab gelernt dass es mit CSS (display:none/block) nicht geht. Was wäre hier angebracht? document.createElement? |
#3
| |||
| |||
|
|
ich möchte ein Applet nur laden, wenn der Benutzer das anklickt. Hab gelernt dass es mit CSS (display:none/block) nicht geht. |
|
Was wäre hier angebracht? document.createElement? |
|
Danke. |
#4
| |||
| |||
|
|
ich möchte ein Applet nur laden, wenn der Benutzer das anklickt. Hab gelernt dass es mit CSS (display:none/block) nicht geht. Was wäre hier angebracht? document.createElement? |
#5
| |||
| |||
|
|
Wenn der Benutzer "was" anklickt? |
|
Ob das dynamische Erstellen eines 'applet'-Elementes samt Attributen und eventuellen 'param'-Kindselementen per DOM klappt, wirst du mit verschiedenen Browsern testen müssen. |
#6
| |||
| |||
|
|
ich möchte ein Applet nur laden, wenn der Benutzer das anklickt. Hab gelernt dass es mit CSS (display:none/block) nicht geht. Es geht. |
|
Was wäre hier angebracht? document.createElement? Ja. |
#7
| |||
| |||
|
|
Thomas 'PointedEars' Lahn wrote: ich möchte ein Applet nur laden, wenn der Benutzer das anklickt. Hab gelernt dass es mit CSS (display:none/block) nicht geht. Es geht. Also der IE lädt das Applet auch, wenn es auf display:none steht. Das ist wohl auch CSS-Spec. konform. |
|
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. This behavior cannot be overridden by setting the 'display' property on the descendants. Please note that a display of 'none' does not create an invisible box; it creates no box at all. [...] |
|
Was wäre hier angebracht? document.createElement? Ja. Gibt es da eine cross-Browser fähige Variante? |
#8
| |||
| |||
|
|
| 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. This behavior cannot be overridden by setting the 'display' | property on the descendants. | | Please note that a display of 'none' does not create an invisible box; | it creates no box at all. [...] Das Verhalten von IE/MSHTML ist also nach meinem Verständnis (mal wieder) _nicht_ standardkonform. Aber diese Erkenntnis hilft natürlich hier nicht weiter, zudem wäre ein per Default ausgeblendetes APPLET-Element auch nicht barrierefrei. |
|
Ja, document.createElement() & Freunde. Was genau gefällt Dir daran nicht? |

#9
| |||||
| |||||
|
|
Thomas 'PointedEars' Lahn wrote: | 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. This behavior cannot be overridden by setting the 'display' | property on the descendants. | | Please note that a display of 'none' does not create an invisible box; | it creates no box at all. [...] Das Verhalten von IE/MSHTML ist also nach meinem Verständnis (mal wieder) _nicht_ standardkonform. Aber diese Erkenntnis hilft natürlich hier nicht weiter, zudem wäre ein per Default ausgeblendetes APPLET-Element auch nicht barrierefrei. |
|
Hätte ich auch gedacht und ist wohl auch so - nur steht da nichts, ob die Java-Runtime nun anspringt oder nicht. |
|
Der HTML5-Draft sagt dazu wohl mehr: "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." |
|
Ja, document.createElement() & Freunde. Was genau gefällt Dir daran nicht? Das was Martin dazu sagte: "Ob das dynamische Erstellen eines 'applet'-Elementes samt Attributen und eventuellen 'param'-Kindselementen per DOM klappt, wirst du mit verschiedenen Browsern testen müssen." |
|
Etwas Recherche hat mir schon gezeigt, dass applet sich bei jedem Browser anders verhält ![]() http://windyroad.org/2006/08/14/reintroducing-javascript-and-hidden- applets-jaha/ |
![]() |
| Thread Tools | |
| Display Modes | |
| |