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

ajaxPrefilter error #30

Open
nansCabanac opened this issue Jul 19, 2017 · 0 comments
Open

ajaxPrefilter error #30

nansCabanac opened this issue Jul 19, 2017 · 0 comments

Comments

@nansCabanac
Copy link

Hey,

I want include default data in ajax request, but when i try this code :

` $.ajaxPrefilter(function (options, originalOptions) {

    options.data = $.extend(originalOptions.data, { r: "revision" });

}); `

I have found this code at :
https://stackoverflow.com/questions/6996993/jquerys-ajaxsetup-i-would-like-to-add-default-data-for-get-requests-only

It's not work, and i have this error :
Uncaught TypeError: o.data.replace is not a function
at ajax (jquery-3.2.1.min.js:4)
at ajaxq.js:30
at enqueue (ajaxq.js:53)
at Function.$.ajaxq (ajaxq.js:28)

How use ajax filter with ajaxq ?

Tanks for help !
Have nice day !

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

No branches or pull requests

1 participant