Composer Autocomplete and asynchronus replace



  • Hi,

    I'm writing a plugin that uses the composer:autocomplete:init event within client side javascript code. I have a problem within the replace functor. It seems that it doesn't support a callback mechanism to allow asynchronous jsonp calls to be made within the replace functor. I need to do a further REST request on the selected data which can only be achieved by doing a jsonp request. Is there another way to achieve the replace functionality in an asynchronous fashion?

    Thanks


  • Admin

    We use https://github.com/yuku-t/jquery-textcomplete, I don't think it supports async calls in the replace function. You might have to find another way to load that data and use it in the replace function.


Log in to reply
 


Star

Looks like your connection to NodeBB was lost, please wait while we try to reconnect.