HubSpot / messenger

Growl-style alerts and messages for your app. #hubspot-open-source
http://github.hubspot.com/messenger/
MIT License
4.02k stars 405 forks source link

how to use Messenger().run() with spinner #47

Closed DadingTsu closed 11 years ago

DadingTsu commented 11 years ago
Messenger().run({
  errorMessage: 'Error destroying alien planet',
  successMessage: 'Alien planet destroyed!',
  progressMessage: 'Please Wait...'
},
{
  type:'POST',
  url:'/',
  data:{
  },
  success:function(data) {
    alert(data);
  }
});

is that right? but this can not show spinner. how to set Messenger.options

zackbloom commented 11 years ago

The spinner shows up while a retry is happening, meaning you need a request which fails. See the example here: http://github.hubspot.com/messenger/