Hey Marco,
2014-05-02 10:01 GMT+02:00 Marco Gulino <marco.gul...@gmail.com>:
> Sorry, I just saw your answer.
> Maybe I wasn't clear, or I didn't correctly understood you.
> I know how to connect a signal to custom javascript code (either with the
> string version of the connect method of JSignal, or with a JSlot, as you
> said).
> The problem is that the function prototype is
>
> function(sender, event) { ... }
>
>
> and in both cases it seems impossible to access the "int" parameter
> emitted by the JSignal call, which is what I need. Unless it's hidden in
> the "event" or "sender" parameters, but in this case I'd need to know
> exactly where...
>
We've implemented this only recently in a development version of Wt which
will be merged in to Wt for Wt 3.3.4. So until then you cannot really do
this.
With this change, the signature will be :
function(sender, event, a1, a2, ...) where a1, a2, ... correspond to the
JSignal arguments.
Regards,
koen
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos. Get
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest