ToastNotification icon indicating copy to clipboard operation
ToastNotification copied to clipboard

Problem with ajax call

Open shahabfar opened this issue 4 years ago • 3 comments

It doesn't work when the razor page handler getting called from $.ajax(...) while Toastify exists in the handler.

shahabfar avatar Mar 01 '21 11:03 shahabfar

I'm interested in this issue too. Is this already solved and do you have an example ?

kouwerp avatar Aug 17 '21 20:08 kouwerp

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

P2mb2 avatar Sep 03 '21 17:09 P2mb2

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

RicardoMarinho avatar Jul 31 '22 17:07 RicardoMarinho