Typeahead.js Remote Beforesend Post Data Issue
I'd already posted this to the typeahead github, but I thought perhaps I could ask here and find an answer. I'm trying to use a remote query as our of our datasources for typeahead
Solution 1:
I have this exact same use case (integrate typehead.js with elasticsearch), and ran into the same problem. The problem ends up being that the line of code in jquery that is checking whether or not you have form data to POST is:
xhr.send( ( s.hasContent && s.data ) || null );
... and so just go ahead and set s.hasContent=true
in beforeSend
and everything works.
Post a Comment for "Typeahead.js Remote Beforesend Post Data Issue"