Questions tagged [gritter]

22 questions
5
votes
1 answer

Intercept and convert all alerts to notifications

So I'm using Gritter for notifications throughout a site, and was wondering if there was a simple way to intersept all the alert() s thrown by any script, with jQuery, and reformat the value of the alert to the body of a Gritter notification?
user811348
  • 81
  • 9
2
votes
1 answer

Gritter titles, text, image

I have 3 conditions which would render 3 different gritter notifications. The condition results should change the image, text and title. Do I have to $.gritter.add({...}) for every single condition? Or is there a way to declare just one gritter…
aaroncope
  • 61
  • 4
2
votes
1 answer

jQuery gritter plugin close icon remains hidden

I'm using gritter.js to notificate success or error messages. It works but the "X" close-icon remains hidden. I check in CSS rules of the element, they are all right but having no effects.
bany
  • 23
  • 6
2
votes
5 answers

Jquery Gritter set position

is it possible to change the possition of gritter? Or even better bind it to an element such as a span or a div? Ive tried: $.gritter.add({ title: 'Dashboard', text: 'Field updated!', time: 2000, …
Marc Rasmussen
  • 19,771
  • 79
  • 203
  • 364
1
vote
3 answers

function pageLoad not working

I have been struggling to get my jquery gritter notification to work after a partial postback, after lots of googling i found many suggestions recommending the pageLoad function. I'm not sure if I have implemented it right but now the gritter…
1
vote
2 answers

Rails, Gritter - remove default title

I use Gritter notifications in Rails 5 app and can't find a way to remove default title of the notification popup. I add Gritter as bellow: <%= js add_gritter(flash[:notice], title: 'I dont need you', sticky: false) %> Tried: <%= js…
Julius Dzidzevičius
  • 10,775
  • 11
  • 36
  • 81
1
vote
1 answer

Rails 4 render Gritter messages in js view

Using Rails 4.2.4, ruby 2.2.2, gritter gem 1.2.0. My controller respond with js: #posts_controller.rb if @post.update post_params gflash :success => "Link updated" end in accordion with official doc this is my js view: #update.js.erb <%= gflash…
user1066183
  • 2,444
  • 4
  • 28
  • 57
1
vote
1 answer

Adding Gritter Message After Second Deletion

I'm trying to find out why when a user is deleted by clicking on the ajax-delete class icon and performs the deletion process it shows the gritter message after deletion however if you were to immediately delete another user afterwards it removes…
user3732216
  • 1,579
  • 8
  • 29
  • 54
1
vote
3 answers

Using Private-pub with channels that have segment keys and coffeescript variant

I'm trying to replicate a push notification system similar to facebook's using private_pub. Ideally I would want to link this to show notifications using a gem such as gritter (other gem suggestions are welcome) Whenever a certain action from a…
0
votes
0 answers

$.gritter is coming as undefined?

My program uses jquery.gritter plugin to show error and success messages. In the whole application is working perfectly. But only at one place it is showing "Cannot read property 'add' of undefined" for the below code: $(".cart").on("click",…
deDishari
  • 187
  • 1
  • 3
  • 11
0
votes
1 answer

How to serve files in flask to javascript like simplehttpserver does?

I'm working on a small web application based on Flask and I'd like to use gritter to flash messages, but I get the following error from JS: GET http: //127.0.0.1:5000/images/ie-spacer.gif 404 (NOT FOUND) I have an images folder, but it doesn't work…
dobokocka
  • 31
  • 3
0
votes
2 answers

unable to close modal window after ajax success call

I am making a jquery ajax request as follow Edit On click of edit btn $('.mymodalbtn').click(function($this){ var id = $this.data('id'); $('[name="id"]').val(id); }); }); Modal window get open with editable…
user269867
  • 3,266
  • 9
  • 45
  • 65
0
votes
1 answer

Jquery Gritter Notification

I want to display a notice with gritter jquery. When I make a insert update data in a form that gritter notification will appear. What should I do?
PortgasTea
  • 1
  • 1
  • 1
0
votes
1 answer

How to integrate Pusher with rails app

i can`t integrate Pusher with my rails app there is any example or good tutorial for that ? www.pusher.com https://github.com/pusher/pusher-gem
0
votes
2 answers

Jquery notification event firing twice

I have just started using gritter notification plugin and experiencing strange behavior. I am displaying the notification on page load and for some reason, the same message is appearing twice. I would be grateful if someone could check my code and…
user1532468
  • 1,723
  • 8
  • 41
  • 80
1
2