Provided: I load the message queue when the page loads.
Using jGrowl, how can I display each message, one message at a time, drip?
I needed to do this for a project a few months ago. If you use the union function available in the latest version of jGrowl (1.2.0 at the time of this writing), you can simply write:
$.jGrowl.defaults.pool = 1;
, , jGrowl , . , jGrowl .
, , .
$. jGrowl.defaults.pool == 0;
if ($ (this.element).find('div.jGrowl-notification: parent'). size() < 0) {
, , . , ! .:)
, (), JS setTimeout , .
Alternatively, jGrowl can use the function (e, m, o) as its close parameter and use it as a callback whenever the message closes. In this function, create a new message from your queue and you should be installed. See the documentation here .
Source: https://habr.com/ru/post/1715981/More articles:State Model Design Model - designThe problem with hand painting - c #How to add a bare CALayer as a "subview" in a UIView? - iphoneНе удается получить доступ к расположенному объекту. Сделка - c#How to set up a VB project? - installerConditional sections on AIX Makefiles - unixChange the GCC version used by bjam - gccunderstanding methods in objective-c - methodsPerforming aggregate functions on large, frequently changing datasets - performanceКак преобразовать переменную функцию аргумента в макрос? - cAll Articles