Got a strange problem I'm hoping someone can help with.
What we have is a normal Select box populated with several items.
I have a javascript setTimeout that when triggered grabs a value off the page, passes it to a webservice - the webservice returns a value, if they match, the timeout is reset and it repeats.
If the value is different, it fires an ajax postback at the server (with the value of the selected item in the select box) and populates a div with the data returned and a new value which will be again compared to data returned by the webservice on the next setTimeout.
My problem is, in Firefox if I have the select box opened and am hovering over one of the options when it is determined a postback is required (from the webservice's returned data) - the value I'm hovering over is posted back, not the actual selected value.
So - is there a way to detect if a select box is "open" in javascript? If I could tell if the box is currently open, I could cancel either the call setTimeout or the postback itself.
What we have is a normal Select box populated with several items.
I have a javascript setTimeout that when triggered grabs a value off the page, passes it to a webservice - the webservice returns a value, if they match, the timeout is reset and it repeats.
If the value is different, it fires an ajax postback at the server (with the value of the selected item in the select box) and populates a div with the data returned and a new value which will be again compared to data returned by the webservice on the next setTimeout.
My problem is, in Firefox if I have the select box opened and am hovering over one of the options when it is determined a postback is required (from the webservice's returned data) - the value I'm hovering over is posted back, not the actual selected value.
So - is there a way to detect if a select box is "open" in javascript? If I could tell if the box is currently open, I could cancel either the call setTimeout or the postback itself.