Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

_IEFormElementOptionSelect doesn't trigger the onchange function in IE9+

$
0
0

Has anyone found a solution to this:

I'm trying to use _IEFormElementOptionSelect to change the "select" option on the webpage, but it's not working.

It's changing the value, but not triggering the onchange event.

I've tried in IE8 and lower and it works, but it doesn't work on IE9 and above. I have also tried to use the _IEAction with "focus" on the element before calling IEFormElementOptionSelect, and I still haven't got the results from the onchange event (the select switches to desired option, but doesn't trigger any event).

 

So I was thinking, is there a way to call the function manually?
The function name is:

bookingChanged_Rev1()

...this is the full element:

<select name="sortOrder" id="sortOrder" class="srtOrder  no_cpu " onchange="bookingChanged_Rev1()"> <option value="popularity" selected="selected">Ranking</option> <option value="alphabetical">Name</option> <option value="priceHigh">Price (high to low)</option> <option value="priceLow">Price (low to high)</option> </select>

so I was thinking of calling something like:

$oIE.document.parentwindow.eval('bookingChanged_Rev1();')

right after I change the "select" via IEFormElementOptionSelect but that just opens another IE window.
I also tried to submit the form with _IEFormSubmit on the form where this element is, but still no luck.

Has anyone ever had to deal with this issue? Has this been solved already? I haven't found any solution...

 


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>