[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: [PATCH] tracking form value changes in onclick-handlers
From:       bj () altern ! org
Date:       2004-07-12 21:58:48
Message-ID: 200407130006.39356.bj () altern ! org
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic