Skip to content
This repository has been archived by the owner on Jul 2, 2018. It is now read-only.

Add support for jsonp #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

codingluke
Copy link

Example

$('#searchfield').autocomplete({
    url: 'http://www.someexternalurl.com/autocomplete',
    remoteDataType: 'jsonp',
    jsonpCallback: 'customCallbackName'
});

Response must be encapsulated in a function defined with jsonpCallback

customCallbackName({"results": ["suggestion1", "suggestion2", ...]})

Intelligent adding a jsonpCallback function. The function name can be customized with the option jsonpCallback
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant