AW: Repost: onChange Event not getting fired

Baumann, Thomas baumann at valudo.de
Tue Aug 31 09:15:43 BST 2004


hi there,

I did this by sending an UIEvent.

After changing the select-element do something like this:

DOM::UIEvent ev = select.ownerDocument().createEvent("UIEvents");
ev.initUIEvent("change", false, true, select.ownerDocument().defaultView(),
0);
select.dispatchEvent(ev);

You'll need at least this header included: <dom/dom2_events.h>

Good luck,
Thomas

-----Ursprüngliche Nachricht-----
Von: B S Prabhakar [mailto:bsprab at yahoo-inc.com]
Gesendet: Tuesday, August 31, 2004 6:33 AM
An: kfm-devel at kde.org
Betreff: Re: Repost: onChange Event not getting fired


Hi,

  Trying my luck here ....


I am having requirement to fillup form programatically, I am using
KHTML library shipped with KDE-3.2.2  for the same.

One of the form I am processing is having a list box,  when I make
selection using  setSelectedIndex(int) of HTMLSelectElement, onChange
event is not getting fired but  when focus() of HTMLSelectElement is
called onFocus event is getting fired. Should I do anything special
for emiting onChange event ?


ThanX,
--BSP.

Kevin Krammer wrote:

>On Monday 30 August 2004 16:16, B S Prabhakar wrote:
>  
>
>>B S Prabhakar wrote:
>>    
>>
>>>Hi,
>>>
>>>  I am having requirement to fillup form programatically, I am using
>>>KHTML library shipped with KDE-3.2.2  for the same.
>>>
>>>One of the form I am processing is having a list box,  when I make
>>>selection using  setSelectedIndex(int) of HTMLSelectElement, onChange
>>>event is not getting fired but  when focus() of HTMLSelectElement is
>>>called onFocus event is getting fired. Should I do anything special
>>>for emiting onChange event ?
>>>      
>>>
>
>Try kfm-devel
>
>Cheers,
>Kevin
>
>  
>




More information about the kfm-devel mailing list