corejavascript / corejavascript/typeahead.js

Having two rest calls in typeahead remote.

Open
#176 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
968
Forks
231
PR merge metrics
No merged PRs in 30d

Description

I am making the rest call from typeahead using remote, filter functionality of it. I am getting the result of first rest call. Problem is I want to send the result of this rest call to other rest call which in turn provides the result and that results have to appended in typeahead result suggestions.
Method I am implementing is that as soon as i get result from first rest call using remote server of typeahead, I am calling the ajax function but being the asynced functionality of Ajax, typehaed is returning null results. How can i implement two rest calls in the same typehead servers.
I want the result from second rest call to be appended in tpeahead results and second is dependent on first rest call.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.