Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: bouba on April 05, 2012, 04:23:19 AM

Title: Autocomplete in plugin
Post by: bouba on April 05, 2012, 04:23:19 AM
Hi,

is it possible to use the autocomplete address function (in use in compose action) in a plugin?
I found a function "rcube_autocomplete_init()" that puts some js var in the page, but nothing happen when i type something in the "_to" field in my plugin.

How can i use the autocomplete function in a plugin?

thanks!
Title: Re: Autocomplete in plugin
Post by: SKaero on April 05, 2012, 07:47:35 AM
You'd need to setup a js function to watch the to field and then post the data to ?_task=mail&_action=autocomplete.
Title: Re: Autocomplete in plugin
Post by: bouba on April 06, 2012, 09:47:11 AM
thanks SKaero :)