ToastNotification
ToastNotification copied to clipboard
Problem with ajax call
It doesn't work when the razor page handler getting called from $.ajax(...) while Toastify exists in the handler.
I'm interested in this issue too. Is this already solved and do you have an example ?
I'm not able also to use on ajax handler... :| althought the documentation refer the need to add the middleware "app.UseNotyf();"... it didn't seem to work.
Also... i dont find an example call on the project. It would be appreciated. thanks
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