HighDots Forums  

Re: Event registration in Firefox 2.0

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: Event registration in Firefox 2.0 in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Thomas 'PointedEars' Lahn
 
Posts: n/a

Default Re: Event registration in Firefox 2.0 - 01-03-2008 , 10:44 AM






Patrik Spieß wrote:
Quote:
script language="javascript"
[...]
// does not work:
//document.links[i].addEventListener("onmouseover", handleEvent,
true);
//document.links[i].addEventListener("onmouseout", handleEvent,
true);
[...]
form name="test"
The event types are "mouseover" and "mouseout", the third argument should be
`false' (non-capturing listener), and your markup is not Valid.
http://validator.w3.org/

Quote:
[...]
input value="Clear log"
onclick="document.forms[0].elements['log'].value = ''" type="button"
<script type="text/javascript">
document.write('<input type="button" value="Clear log"'
+ ' onclick="this.form.elements[\'log\'].value = \'\';">');
</script>


PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann


Reply With Quote
  #2  
Old   
Patrik Spieß
 
Posts: n/a

Default Re: Event registration in Firefox 2.0 - 01-03-2008 , 12:03 PM






On 3 Jan., 17:44, Thomas 'PointedEars' Lahn <PointedE... (AT) web (DOT) de>
wrote:
Quote:
The event types are "mouseover" and "mouseout", the third argument should be
`false' (non-capturing listener), and your markup is not Valid.http://validator.w3.org/
Sometimes you don't see the wood for the trees. Thanks for the hint
(for the obvious mistake), you saved me a lot of time.

Patrik


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 - 2008, Jelsoft Enterprises Ltd.