Re: Implement Autocomplete OnSelect event - jquery bind event

2012-10-21 Thread bhorvat
I manage to solve my problem in a different way. By passing a function that
will be triggered once the item in autocomponent is selected.

cheers



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Implement-Autocomplete-OnSelect-event-jquery-bind-event-tp5717090p5717100.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Implement Autocomplete OnSelect event - jquery bind event

2012-10-20 Thread bhorvat
I manage to do something but still not quite there

t:textfield t:value=myvalue t:mixins=jquery/autocomplete,jquery/bind  
bind.event=select bind.eventType=select 
bind.context=${selector:this}[0].value
bind.callback=function (event,ui,url) {
alert(${selector:this}[0].value);} /   
  

this will fire an event when I select text and it will be handled on the
jave side. However there are 2 problems with this. The first one is that i
dont know how to pass the changed value.

bind.context=${selector:this}[0].value - just returns the string that is
written there (js is not exectued)
bind.context=myvalue - returns the original value

The second problem is that I cant find the right event. On select, on click
is not good, and on change gets trigger once I select something from
autocomplete, but it only gets the first character and not the hole word.

Any ideas anyone



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Implement-Autocomplete-OnSelect-event-jquery-bind-event-tp5717090p5717092.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org