-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
I'm working with a legacy Software and I can only make the serviceUrl work if I can set the contentType of $.ajax to "application/json; charset=utf-8". Would be nice if this could also be passed as an option in a future release. Many thanks.
that.currentRequest = $.ajax({
url: serviceUrl,
data: params,
type: options.type,
contentType: opitons.contentType,
dataType: options.dataType
}).done(function (data) {
var result;
that.currentRequest = null;
result = options.transformResult(data);
that.processResponse(result, q, cacheKey);
options.onSearchComplete.call(that.element, q, result.suggestions);
}).fail(function (jqXHR, textStatus, errorThrown) {
options.onSearchError.call(that.element, q, jqXHR, textStatus, errorThrown);
});
Metadata
Metadata
Assignees
Labels
No labels