I am maintaining inherited code on an existing web site. On the client side event of some controls, we have code like this:
Firefox does not give global access to the event object - it must be passed as a parameter. For this reason, Firefox will not work for these controls as it is implemented above. Is there a way to access the event object through the control? Or is there a different signature we can give to the method to allow access the event object? How can we know the type of event that caused this method to fire?
Thanks for your help!
| function CustComboBoxDropDownOpeningHandler(sender, args) |
| { |
| .... [code]... |
| if (event.type == "propertychange") |
| args.set_cancel(true); |
| ..... [code].... |
| } |
Firefox does not give global access to the event object - it must be passed as a parameter. For this reason, Firefox will not work for these controls as it is implemented above. Is there a way to access the event object through the control? Or is there a different signature we can give to the method to allow access the event object? How can we know the type of event that caused this method to fire?
Thanks for your help!