J. Strübig wrote:
Quote:
Ich verusch grad eine Lib für mouseevents zu kreieren und bin
dabei auf ein Problem gestossen. Und zwar scheint MZ (1.4) ein
Problem mit ondblclick zu haben. Wenn man diesen per Skript
einbauen will reagiert er nicht, im gegensatz zu OP 7.11 und IE 6.0. |
In welchem (Level des) W3C- und/oder Gecko-DOM ist ondblclick (writeable)
definiert? Richtig, in gar keinem. Das ist eine Microsoft-Erfindung (für
Windows-User), die Opera kennt, weil er sich als IE ausgeben können muss:
,---------<http://www.mozilla.org/docs/dom/domref/dom_el_ref.html>--------
Quote:
Event Handlers
These element properties cannot be assigned to in the way that the event
handlers on the document and window objects can. All of the folllowing
event handler properties are read-only, and are made to return the event
handling code, if any, that has already been added to the element in the
HTML or XML itself.
[...]
ondblclick [...] |
und
<http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-MouseEvent>
/mouse events
Micro$~1 verbreitet da übrigens wieder einmal unvollständige Information,
denn dass der Event-Handler in HTML existiert, heisst noch lange nicht,
dass er mittels einem DOM manipulierbar ist:
<http://msdn.microsoft.com/workshop/author/dhtml/reference/events/ondblclick.asp>
Ich denke nicht, Tim^J. ;-)
Nein, ein Feature.
Quote:
oder muss da noch was eingebaut werden? |
Ja, man könnte sich einen manipulierbaren Event-Handler
mittels onmousedown, onmouseup und setTimeout(...) basteln.
PointedEars