[wtr-general] SelectList javascript event handlers not firing when JQuery is used

2011-05-26 Thread Babitha
Hello

I have a selectlist on my page, which has a onchange event handler
defined in JQuery. This event handler does not seem to be getting
triggered when I use Watir to change the selectlist value.

The behavior is pretty erratic.
Sometimes the event handler is fired and sometimes it is not.

I found a similar question asked in StackOverflow and the answer given
was to use element.fire_event onclick or element.fire_event
onchange. I tried this as well and still the behavior is
unpredictable. For one value selected in the selectlist it works, but
not for the other one.

I have ruby 186-26, watir-1.6.7. IE 8
Is it a known issue? Is it fixed in the later version of Watir?

thanks
Babitha

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] SelectList javascript event handlers not firing when JQuery is used

2011-05-26 Thread Basim Baassiri
it would be helpful if you provided some of the code as well as the jquery
selectlist and html and if it is publicly available a link to it

On Fri, May 27, 2011 at 1:35 AM, Babitha babitha.augus...@gmail.com wrote:

 Hello

 I have a selectlist on my page, which has a onchange event handler
 defined in JQuery. This event handler does not seem to be getting
 triggered when I use Watir to change the selectlist value.

 The behavior is pretty erratic.
 Sometimes the event handler is fired and sometimes it is not.

 I found a similar question asked in StackOverflow and the answer given
 was to use element.fire_event onclick or element.fire_event
 onchange. I tried this as well and still the behavior is
 unpredictable. For one value selected in the selectlist it works, but
 not for the other one.

 I have ruby 186-26, watir-1.6.7. IE 8
 Is it a known issue? Is it fixed in the later version of Watir?

 thanks
 Babitha

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.com


-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com