Get data using XMLHttpRequest request? #286
Unanswered
craigmichaelmartin
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Yes, #255 (comment) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to use the older (better supported) XMLHttpRequest function to get results for the autocomplete?
It looks like the current API depends on the data.src function returning an array, or a promise that resolves to an array. In an effort to support as many browsers as possible, I was hoping to using XMLHttpRequest rather than fetch and promises. To support this, the data.src function would need to accept as a parameter a callback function which the data from the API would be passed to - rather than them (or a promise which resolves to them) being returned.
I'm guess this library pre-existed standardized promises, so was wondering if this was/is part of the API, just not shown anymore. Or perhaps the internals of the library now depend on an environment which supports promises, making this a moot effort.
Thanks so much for the great library!!
Beta Was this translation helpful? Give feedback.
All reactions