You could use a wicket HiddenField and let your js function write his result to
this field. At the next (ajax) request you are able to read the value from this
field.
Jaap
-Original Message-
From: Piller Sébastien [mailto:[EMAIL PROTECTED]
Sent: dinsdag 21 oktober 2008 9:49
To: users@wicket.apache.org
Subject: Re: How to get return value from javascript
js is client side, and wicket is server side.
to pass a value from js to wicket, you may do an ajax query. see
wicketAjaxGet and AbstractDefaultAjaxBehavior
freak182 a écrit :
Hello,
My problem is how can i get the return value of a javascript function: e.g
init.js
funtion userExist(id)
{
return true;
}
how can i get the returned value true from wicket.
Thanks a lot...Cheers
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]