[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re[2]: [cgmo-webcgm] more questions about onload
Hi Benoit,
One small clarification (ignoring the big issue for the moment)...
At 10:12 AM 12/20/2005 -0500, Benoit Bezaire wrote:
>Thursday, December 15, 2005, 3:30:00 PM, you wrote:
> > At 04:39 PM 12/14/2005 -0500, Benoit Bezaire wrote:
> >>
> >> var metafile = document.getWebCGMMetafile();
> >> metafile.src = 'myCGM.cgm';
> >> metafile.addEventListener("onload", myLoadFunction);
> >> metafile.src = 'myCGM2.cgm';
>
> > Note, per my last email, that the name of the event in 5.7.10 is 'load',
> > not 'onload'.
>Yes, the event name is 'load', but is the event listener called 'load'
>or 'onload'? I guess the spec should be clear about that.
From 5.7.3, the description of the first parameter of addEventListener
is: "The event type for which the user is registering, (for example:
"click", "mouseover")."
It seems clear enough to me, that the example should be:
metafile.addEventListener("load", myLoadFunction).
I.e., the first parameter is the name of the event, not the name of the
event listener.
How about this disambiguation: in the 5.7.3 description (quoted above) of
the 'type' parameter of the addEventListener method, link "event type" to
the event list at the end of 5.7.10?
-Lofton.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]