Questions tagged [pnotify]

JavaScript notifications for Bootstrap, jQuery UI, and the Web Notifications Draft.

JavaScript notification plugin for Twitter Bootstrap, jQuery UI, and the Web Notifications Draft.

63 questions
16
votes
4 answers

Uncaught SyntaxError: Unexpected token = in Google Chrome

I have a javascript function which accept an optional parameter. This works fine in Firefox, but in Google Chrome it shows:- Uncaught SyntaxError: Unexpected token = My Code, function errorNotification(text = "Something went wrong!") { …
Anshad Vattapoyil
  • 23,145
  • 18
  • 84
  • 132
6
votes
2 answers

Listen to localStorage.removeItem() event only

I am displaying notifications to users using pnotify plugin. However I want to remove notification on all tabs if user closes notification in 1 tab by clicking X icon. I use localstorage for this, each time a new notification is shown to the user,…
GGio
  • 7,563
  • 11
  • 44
  • 81
5
votes
3 answers

what are the files to include for pnotify

this is the result of pnotify after I included the following files: prettify.js && prettify.css && jquery.pnotify.default.css && jquery.pnotify.default.icons.css && of course jquery.pnotify.js am I missing something ?
Tarek
  • 1,904
  • 2
  • 18
  • 36
4
votes
1 answer

Close all pnotify notifications when a specific notification shows up

I am using pnotify plugin. My code is as follows: $('.input_elements').on('change', function() { if ($(this).val() > 2) { $.pnotify({ text: 'Quantity exceeds the number of available items.', type: 'error', delay:…
GGio
  • 7,563
  • 11
  • 44
  • 81
3
votes
2 answers

How to add success notification after form submit

I would like to add success notification after user submitted the form. I've already checked out the Pnotify js library -https://sciactive.com/pnotify/, which looks nice. But no idea how I can use in my CRUD project. I'm using Spring Boot and…
eabyshev
  • 703
  • 2
  • 8
  • 16
3
votes
1 answer

pnotify: buttons don't work

I'm trying to use buttons of Pnotify but I couldn't get them to work. The problem is that I'm using Pnotify with requiredJS and Bower (within backbone).. I tried in many ways.. Pnotify documentation has a comment regading this issue:…
bySamo
  • 475
  • 5
  • 12
3
votes
2 answers

Pnotify - javascript is working, css not

I found this cool little thing called pnotify, which provides really nice notifying alerts via javascript and bootstrap or jquery css but particulary css is not working for me. I have this code: pNotify test