Author Topic: Autocomplete in plugin  (Read 5565 times)

Offline bouba

  • Jr. Member
  • **
  • Posts: 11
Autocomplete in plugin
« 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!

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: Autocomplete in plugin
« Reply #1 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.

Offline bouba

  • Jr. Member
  • **
  • Posts: 11
Re: Autocomplete in plugin
« Reply #2 on: April 06, 2012, 09:47:11 AM »
thanks SKaero :)