Re: Intercept combo box event select

2006-01-19 Thread Aleksandar Vasilev
Hi, Niky is right, you have to be sure your document has fully loaded. But if it is not, you cant get he select element, at least if you use FindElementById(). Try to listen for another event, fo example "mouseover" or "click" to see if the event listener gets any events, so you isolete the p

Re: Intercept combo box event select

2006-01-19 Thread Niky Williams
Ali, Mazin wrote: Hi I'm trying to intercept combo box select. here is my code, but the event never fire when I select new item from the combo box. anyone can help me in this one. nsCOMPtr SelectElement = do_QueryInterface( pNode, &rs ); nsCOMPtr target = do_QueryInterface(SelectElement)

Intercept combo box event select

2006-01-18 Thread Ali, Mazin
Hi   I'm trying to intercept combo box select. here is my code, but the event never fire when I select new item from the combo box. anyone can help me in this one. nsCOMPtr SelectElement = do_QueryInterface( pNode, &rs ); nsCOMPtr target = do_QueryInterface(SelectElement) ; nsCOMPtr event