Bootstrap-Notify in Grails 2.5

Anyone with the know-how of using the Boostrap Notify plugin with a Grails application?

Here's what I did. After adding bootstrap-notify.js to assets / javascripts and adding this line to main.gsp:

<asset:javascript src="bootstrap-notify.js" />

      

I tried to display a notification with this line, which I added to the g: javascript clause in the gsp page:

$.notify("Hello World");

      

thinking that the notification will show on page load, but nothing is shown. If someone is using it successfully when a notification is displayed on demand, it would be quite helpful to see how to do it.

+3


source to share





All Articles