Well fantastic. I am very grateful and shall be using your version.
But, what does this mean:
var event e || window.event;
which is what I have used as apposed to:
if (!e) var e = window.event;
your version.
I assume (!e) tests for no error(s)? and then assigns e a class like
window.event or is it just checking for any events such as onClick? I have
seen the || (or) symbol before in this sort of context. Is it another way
to get the class or status of window.event? I tried to change || to an =
sign but it did not like it.
Regards, Walter
-----Original Message-----
From: staffslug-bounces(a)staffslug.org.uk
[mailto:staffslug-bounces@staffslug.org.uk] On Behalf Of David Boucher
Sent: 18 February 2010 19:59
To: staffslug(a)staffslug.org.uk
Subject: Re: [Staffslug] Javascript Problem
walt wrote:
Well very many thanks. I would never have found the solution as I
was
looking in the completely wrong direction. I'll dig a bit deeper now so
maybe I will even understand why this happens.
Just beat me to it :)
This (event propagation) is a fairly common concept in GUI programming,
the details vary a lot though. The idea is to allow objects to handle
events they use and pass on the ones they don't.
Anyway, glad to help.
_______________________________________________
Staffslug mailing list
Staffslug(a)staffslug.org.uk
http://lists.staffslug.org.uk/mailman/listinfo/staffslug