开发者

start /stop jquery menu

when usi开发者_开发技巧ng jgrowl and if we invoke the following to close all the menus

 $.jGrowl(data);   
 $.jGrowl('shutdown');

How to start it back.

The following gives an error

$.jGrowl('startup');

Thanks.


Startup ought to be a valid option:

http://bitbucket.org/stanlemon/jgrowl/src/47d58d0e497f/jquery.jgrowl.js

Code snippet from this page:

    /** Setup the jGrowl Notification Container **/
    startup:    function(e) {
        this.element = $(e).addClass('jGrowl').append('<div class="jGrowl-notification"></div>');
        this.interval = setInterval( function() { 
            $(e).data('jGrowl.instance').update(); 
        }, this.defaults.check);

        if ($.browser.msie && parseInt($.browser.version) < 7 && !window["XMLHttpRequest"]) {
            $(this.element).addClass('ie6');
        }
    },

Can you supply details of the error, and maybe some more code to help us determine what is going wrong?

Thanks

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜