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

successCallback function is not being called #176

Open
leonardotrp opened this issue Mar 11, 2022 · 1 comment
Open

successCallback function is not being called #176

leonardotrp opened this issue Mar 11, 2022 · 1 comment

Comments

@leonardotrp
Copy link

HELP

Hi! First congratulations for this excellent jQuery plugin.

I have a doubt. I appreciate if you can help me.

How do I get the successCallback function to be called? From the image below, I understood that the reason is that it has to do with the value of the cookie.
image

@AlexanderStromer
Copy link

Hi
not sure whether you solved the issue by yourself, but nevertheless, here is an answer to your problem.

You can assign any value to the cookie, which jquery.filedownload listens for (see setting "cookieName"). The default is "fileDownload" (see source line 113)

So if you return a Javascript-visible cookie (i.e. not HttpOnly), which is like
"fileDownload=1"
it will trigger the successCallback

HTH

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

2 participants