Hello,
I tried to discover where arguments are stored. See code of Wt.emit. It
looks like it is .args attribute of event, but I am not sure.
BTW, I tried to use connect("function (o, e) { alert(1); }") and it does
not work. Looks like this is broken in my Wt version (3.2.3).
Regards,
Boris Nagaev
On Fri, Mar 21, 2014 at 12:45 PM, Marco Gulino <marco.gul...@gmail.com>wrote:
> Hello
> I'm trying to connect a JSignal to a custom javascript code. This JSignal
> is emitted with an int value, which I'd like to use, but the custom
> javascript function signature must be
> function(sender, event).
> How can I retrieve the original int parameter?
>
> Concrete example:
> I'd like to show a "passive popup" each time an user moves a WSlider,
> using the sliderMoved signal, which has the following signature:
> JSignal<int>& Wt::WSlider::sliderMoved()
> Problem is, when I inspect the "sender" and "event" objects in javascript,
> there's no trace of the "int" parameter, which is the current value, so how
> could I retrieve it?
>
> Thanks
> Marco
>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest