W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2006

Re: W3C DOM and personal opinion...

From: David BERCOT <david.bercot@wanadoo.fr>
Date: Tue, 18 Jul 2006 14:03:30 +0200 (CEST)
Message-ID: <8984259.1153224210878.JavaMail.www@wwinf1621>
To: www-dom@w3.org

> >I don't understand why all these events are not cancelable. If
> >they were, it would give another possibily for the developer.
> What would it mean to cancel load, unload, error, and abort for example?

OK. For these events, I agree.
Perhaps my explanations were not clear...

> All you can do is prevent the default action, and these event types in
> general do not have one associated with them, or you can stop their pro-
> pagation, which you can do for all event types. So how do you think the
> developer is constrained here?

In fact, I wish that the user remains blocked in the input zone.

For example, the value of reference is 25 and the user must put a value which is larger than 25.
In the onchange event, I test the new value. If he put 13 for example, I'd like him not to leave the input zone (with, moreover, an alert message). In IE, I just write : return false and it is ok !
In Firefox, I sought several solutions (onfocus, onkeypress, etc...) without finding anything...

Do you have any solution, any suggestion ?

Thank you very much.

Received on Tuesday, 18 July 2006 12:03:38 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:13 UTC