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

Notyf messages don't appear from POST function in ASP.Net Core 5.0 #8

Open
BruceInCalgary opened this issue Jun 18, 2021 · 3 comments

Comments

@BruceInCalgary
Copy link

I have added some notyf messages in my ASP.Net Core 5.0 web app with Razor pages which look great! These messages work great from the OnGet() function when the page is created. I have added some notyf calls in the OnPut() function but these messages aren't displayed until navigation to the next page. Is there any way to force the notyf messages to display immediately in a OnPost() function call?

@BruceInCalgary
Copy link
Author

BruceInCalgary commented Sep 15, 2021 via email

@BruceInCalgary
Copy link
Author

BruceInCalgary commented Sep 15, 2021 via email

@RicardoMarinho
Copy link

Hi community,

After some research, I finally found the solution for this issue.
In order to trigger the notification you must have this inside of your ajax call:

error: function(jqXhr) { getResponseHeaders(jqXhr); }

Hope this helps you! 😎
Best Regards

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