sciactive / pnotify

Beautiful JavaScript notifications with Web Notifications support.
https://sciactive.com/pnotify/
Apache License 2.0
3.65k stars 513 forks source link

How can I use it using ajax? #255

Closed hassansaqib closed 6 years ago

hassansaqib commented 8 years ago

Hi, I am uploading the images and I do not need to reload the page. How can I show the notification on success or failure of upload? Should I use ajax? And how would I use it?

Further I am using dropzone to upload files...

hperrin commented 6 years ago

You can create a new notice when your ajax code succeeds or fails. You should have some sort of callback option with whatever library you're using. Those callbacks are where you would create notices.