I don't know for sure whether IE (meaning Microsoft IE, not Watir::IE) would automatically fire the onBlur event. But I was under the impression that it never sends extra events when accessed via COM as we do. That's why we have to explicitly fire events. True?

I also don't understand how multiple onBlur events would lead to trouble. This would be like clicking into and then out of a text field right? Usually harmless.

The thing to do is to attach some code to the event in question and then observe when it is fired. Right?

Bret

At 10:39 AM 8/10/2005, Paul Rogers wrote:
Bret,
your recent addition of the onBlur event to text boxes got me thinking.

Does IE fire the onBlur event already with out us adding it, if you explicitly set focus to another item. Eg, using the code BEFORE the addition ( I havent tried this )

ie.text_field(:index,1).set('hi')
# does the blur on text_field get fired by the next line?
ie.button(:index,1).focus

It seems, that this should work, but because of the way we access IE maybe it didnt happen. Id like to make sure so we dont end up firing multiple events.

Paul
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

_____________________
 Bret Pettichord
 www.pettichord.com

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to