[PATCH] tracking form value changes in onclick-handlers

bj at altern.org bj at altern.org
Tue Jul 13 01:06:39 BST 2004


On Monday 12 July 2004 19.52, Tobias Anton wrote:
> I'm planning to commit a patch like this one, and then I'd like to change
> the default event handlers of activatable elements (links, form controls
> and labels) to react on DOMACTIVATE_EVENT instead of CLICK_EVENT, or event
> worse, MOUSEUP_EVENTS.
>
> Is there anything basically wrong or can I try this approach?

Many webmail have a checkbox with something like this:

<form>
<input type="checkbox" onclick="anotherform.checked=this.checked">1<br>
<input id="anotherform" type="checkbox" 
onclick="anotherform.checked=this.checked">2
</form>

Clicking on the checkbox 1 should always set the second checkbox to the same 
value. If you process the javascript events first, the this.checked will 
return a wrong value...

I don't think your patch adresses this issue.

regards
Jean-Baptiste





More information about the kfm-devel mailing list