[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    AW: Repost: onChange Event not getting fired
From:       "Baumann, Thomas" <baumann () valudo ! de>
Date:       2004-08-31 8:15:43
Message-ID: 36A294086C7343499C2FE01BA8699F850EDB92 () mail-server ! valudo ! lan
[Download RAW message or body]

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@yahoo-inc.com]
Gesendet: Tuesday, August 31, 2004 6:33 AM
An: kfm-devel@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
>
>  
>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic