in 0.5.x, you could do something like
var myWidget = new QxLabel("Timer is running");
[...]
window.application.addEventListener ("TimerCompleted",function(event){
this.setHtml("Timer completed!");
},myWidget);
Somewhere in timer code:
window.application.createDispatchEvent("TimerCompleted");
I assume that 0.6 works the same, you just need a differen target for
global events (window.application is no more).
Cheers, Christian
>
> Hi Wenhua,
> Could you provide some simple example of the global event?
>
> Wenhua.Li wrote:> > Thks, and I write wrong words, should use words
> "global";> > I know the way you suggest, when we recive the response of a
> json request,> we can call the js code to do something> > But I think when
> the timer got the response and then notify a global event> to the any
> component which register the event and listener the event, the> code
> structure will be more better, do you think so?> > And I also research
> Bindows for a month, and it also implement this global> event , I just
> think this will be more convenient for us> > Thks for your reply!> >
> -----é®ä»¶åä»¶-----> å件人:
> [EMAIL PROTECTED]>
> [mailto:[EMAIL PROTECTED] 代表 dperez>
> åéæ¶é´: 2006å¹´9æ12æ¥ 16:34> æ¶ä»¶äºº:
> [email protected]> 主é¢: Re: [qooxdoo-devel] about
> globe app event in qooxdoo> > > Hi,> > Globe = global?> When you receive
> the response of a JSON request, you can call any JS code> that can change
> any widget property.> I don't see where is the problem.> You can also use
> "comet" technology, for this kind of apps:>
> http://www.ajaxian.com/archives/comet-a-new-approach-to-ajax-applications>
> > > Wenhua.Li wrote:>> >> Hi,forks>> I also have another question to ask,
> hope someone can help me.>> >> And we now know for each component such as
> Button, Label etc.., we can>> add keylistener or eventlistener to it, so
> if the button is clicked, the>> event will be notify>> >> Now I will
> provide some requirement for my demo:>> And I want do some demo such IM
> tools like meebo, web msn etc in using>> qooxdoo framework, the UI
> Framework of qooxdoo is so cool for me:)>> >> And I establish a back
> endless Timer to connect my webserver through the>> json rpc , and in web
> server there are many message coming and updating,>> so the qooxdoo client
> can receive many message from webservser through>> the json rpc way, that
> 's all the requirement>> Question:>> when the timer got the new message
> from server , the timer will dispatch>> a globe event ,and every
> components such as List,Dialog registered the>> event can be notify, and
> there has globe event exist in qooxdoo project?>> If have could you tell
> me how can I implement my requirement or provide>> me some hyperlink
> doc;>> >> if any question let me know, hope for your reply,thks>> >>
> ------------------------------------------------------------------------->>
> Using Tomcat but need to do more? Need to support web services,
> security?>> Get stuff done quickly with pre-integrated technology to make
> your job>> easier>> Download IBM WebSphere Application Server v.1.0.1
> based on Apache>> Geronimo>>
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>>
> _______________________________________________>> qooxdoo-devel mailing
> list>> [email protected]>>
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel>> >> > > -- >
> View this message in context:>
> http://www.nabble.com/about-globe-app-event-in-qooxdoo-tf2257405.html#a6261899>
> Sent from the qooxdoo-devel forum at Nabble.com.> > >
> ------------------------------------------------------------------------->
> Using Tomcat but need to do more? Need to support web services, security?>
> Get stuff done quickly with pre-integrated technology to make your job>
> easier> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo>
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
> _______________________________________________> qooxdoo-devel mailing
> list> [email protected]>
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel> > >
> ------------------------------------------------------------------------->
> Using Tomcat but need to do more? Need to support web services, security?>
> Get stuff done quickly with pre-integrated technology to make your job>
> easier> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo>
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
> _______________________________________________> qooxdoo-devel mailing
> list> [email protected]>
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel> >
> -- View this message in context:
> http://www.nabble.com/about-globe-app-event-in-qooxdoo-tf2257405.html#a6263704Sent
> from the qooxdoo-devel forum at Nabble.com.
>
> -------------------------------------------------------------------------Using
> Tomcat but need to do more? Need to support web services, security?Get
> stuff done quickly with pre-integrated technology to make your job
> easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642_______________________________________________qooxdoo-devel
> mailing
> [EMAIL PROTECTED]://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel