Hi,

Try with: $('#theTextFieldsId').triggerHandler('change').
You need to trigger the JS event manually after changing the range(s).

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, Feb 23, 2016 at 4:59 PM, Radovan Račák <radovan.ra...@gmail.com>
wrote:

> Hello dear friends,
>
> I would like to ask you how to resolve my little problem. I have problem to
> handle Ajax event onChange or onInput when I want to change TextField's
> value by Javascript.
>
> Let me describe my situation:
> I have one TextField - I added this TextField in Wicket and added to it
> *AjaxFormComponentUpdatingBehavior("change")*. Everythings works fine when
> I
> manually write something to the textfield - Ajax event change is invoked.
> But I am coding very customized Input Range Slider, so I created my custom
> implementation in Javascript. So, when I move with slider, TextField is
> editing but my Ajax event in Java is no invoked when I change textfields
> value in this way.
> I tried another ajax events and behaviors in Wicket, but nothing is
> working...
>
> How can I invoke this Ajax event manually by Javascript?
> Thank you very much
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Handle-Ajax-event-onChange-or-onInput-by-changing-TextField-with-Javascript-tp4673697.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to