It looks like more than just IE has a problem with the onchange event.
 According to quirksmode
http://www.quirksmode.org/js/events_compinfo.html#forms
the onchange event is buggy for Safari and Opera as well, not being
implemented for some form elements.  It may be that the event doesn't
propogate to any parent elements or isn't signalled in the first
place.

An alternative event type seems to be "onblur" -- you could check the
result of a change on a form element when the user moves to a
different form element, but this would trigger even if the form
element hasn't changed.

It seems, to get exactly what you want, you'll have to trap all
relevant key and mouse events in the parent node, and use information
about which node caused the event to decide how to handle it.

 - Kevin


On 1/9/07, Jorge Godoy <[EMAIL PROTECTED]> wrote:
>
> Jorge Godoy <[EMAIL PROTECTED]> writes:
>
> > Jorge Godoy <[EMAIL PROTECTED]> writes:
> >
> >>> http://godoy.homeip.net/~godoy/testing_events.html   (window + 
> >>> document.body)
> >>> http://godoy.homeip.net/~godoy/testing_events2.html  (window + 
> >>> window.document)
> >>> http://godoy.homeip.net/~godoy/testing_events3.html  (window + div 
> >>> wrapped)
> >
> > http://godoy.homeip.net/~godoy/testing_events4.html  (explicit events)
>
> After reading
> http://msdn.microsoft.com/workshop/author/om/event_model.asp#Event_Handler_Scopin
> I've tried
>
> http://godoy.homeip.net/~godoy/testing_events5.html (event inside + outside 
> form)
>
> But no success yet.
>
> One thing has worried me, though: they mention "button" too much and I don't
> see a generic element or tag or something that might lead one to think that
> events can be attached elsewhere.
>
> I've been looking at the code of http://multiply.com/, specially for their
> message board, and I found that they attach the events to each occurrence of
> what they want to do...  They don't have a generic event.  Here's one part of
> code from their HTML:
>
>
> 192 <a onmouseover='popup_miniprofile(this.parentNode, "vannilda", 0, 0)' 
> href='http://vannilda.multiply.com'><img align=left class="headshot" border=0 
> width=50 height=50 alt='vannilda' 
> src='http://images.vannilda.multiply.com/logo'></a>
> 193
> 194 <a 
> href=http://vannilda.multiply.com/journal/item/1?mark_read=vannilda:journal:1><h4
>  >Eu quero...</h4></a>
> 195 <div class="mailby">by <img title='Close' alt='Close' 
> src=http://images.multiply.com/multiply/icons/clean/24x24/very_close.png 
> class=prox> <a href=http://vannilda.multiply.com>Vanilda</a>, your friend <a 
> href=http://cliviahorton.multiply.com>Clivia</a>'s friend </div>
> 196
> 197 <div class="mailsummary">Quero nascer de novo cada dia que nasce.Quero 
> ser outra vez novo, puro, cristalino.Quero lavar-me, cada manhã, do homem 
> velho, da poeira velha,das palavras gastas, dos g</div>
> 198 <div class="mailreplies">posted 27 min ago <a 
> href=/item/set-subscribed/vannilda:journal:1/true><img title='Subscribe to 
> e-mail alerts for this message.' 
> src="http://images.multiply.com/multiply/icons/clean/24x24/mail-off.gif"; 
> ></a><a href=/item/set-sticky/vannilda:journal:1/true><img title='Pin message 
> to top of Message Board.' 
> src="http://images.multiply.com/multiply/icons/clean/24x24/pin-off.gif"; 
> ></a><a 
> href='javascript:confirmBlock("/item/set-blocked/vannilda:journal:1/true")'><img
>  title='Remove this message from the Message Board.' border=0 hspace=2 
> src=http://images.multiply.com/multiply/messages/blocked_off.gif ></a></div>
>
>
> The most relevant part here is the one on line 192, where they have this
> 'popup_miniprofile()' call...  I have mine configured to show 100 entries a
> time and this code is repeated for each and every entry in those 100 entries.
>
> Should I assume that it isn't possible to trap a generic event and find out
> what has generated it then?  Should I go for the 500+ onchange events on my
> code?  (Too bad, because it works perfectly for Firefox...)
>
>
> I'll try more, but I'm almost giving up on this generic approach...
>
>
> Thanks again,
> --
> Jorge Godoy      <[EMAIL PROTECTED]>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to