autocomplete on custom plugin

hey everyone
I wanned to do autocomplete in my own plugin which is more or less “compose message” -I coppied the form but to send message i used messages_new_message.
id and name for input field is the same as in compose message thou it seems that autocomplete doesn’t work – it works only when im in compose message and have opened my plugin simultaneously on one page.
What do I have to include in order to get autocomplete working with my plugin????
Michal

You’ll have to enqueue the Javascript files in bp-messages/js/autocomplete and the css file in bp-messages/css/autocomplete. There’s also some inline JS that needs to be included, which you can find in bp-messages/bp-messages-cssjs.php.

The file paths above are for BP 1.5. Not sure, but could be slightly different for lower versions.