[Proto-Scripty] onBlur event question

2008-10-07 Thread matte
Hi, In firefox, explicitOriginalTarget property of blur event gives me the element of event that caused blur. But in Safari, explicitOriginalTarget gives null. Is there a way that I can find what element of event caused the blur in all browsers? Thanks. MH.

[Proto-Scripty] Re: onBlur event question

2008-10-07 Thread matte
. The problem is with, as I've said before, explicitOriginalTarget property. On Oct 7, 10:23 am, matte [EMAIL PROTECTED] wrote: Hi, In firefox, explicitOriginalTarget property of blur event gives me the element of event that caused blur. But in Safari, explicitOriginalTarget gives null

[Proto-Scripty] Re: onBlur event question

2008-10-07 Thread matte
I learned that explicitOriginalTarget is a Mozilla specific property: http://developer.mozilla.org/en/DOM/event.explicitOriginalTarget . Is there any other property or a way that gives me in all browsers what explicitOriginalTarget gives in Firefox? On Oct 7, 10:41 am, matte [EMAIL PROTECTED

[Proto-Scripty] Extending every Ajax.Request onSuccess event

2008-11-13 Thread matte
Hi, I have an application that uses Ajax.Request and its onSuccess event handler in lots of places. I need to call a function (that will check the response) before all these onSuccess events fired. I tried using Ajax.Responders.register with onComplete event but it fires after Ajax.Request's

[Proto-Scripty] Re: Extending every Ajax.Request onSuccess event

2008-11-13 Thread matte
13, 10:28 am, matte [EMAIL PROTECTED] wrote: Hi TJ, Based on your wrap recommendation I have extended prototype (wrapped Ajax.request.prototype.respondToReadyState function) without modifying the initialize function and source code of prototype js. Here is the link to code:http