Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding config field: ajaxJSONMode to allow JSON request to remote server #242

Merged
merged 2 commits into from
Sep 26, 2023

Conversation

Fabryprog
Copy link

No description provided.

@leonardochaia
Copy link

Hi @Fabryprog , can't you just do the following?

$('#ms-ajaxConfig').magicSuggest({
  data: 'http://nicolasbize.com/magicsuggest/get_cities.php',
  ajaxConfig: {
    contentType: 'application/json',
    processData: false
  }
});

@Fabryprog
Copy link
Author

Sure but it is more comfortable with one single param "ajaxJSONMode" +1

@Fabryprog
Copy link
Author

+1

@zergioz zergioz merged commit 842259b into Magicsuggest:master Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants