MessageBar – just another jQuery plugin

Dec 18, 2010 11 Comments by

I had to create a error message system for a site that did not had any, and nothing was actually planned for it.
So instead of going with those labels and changing colors, I’ve decided to make something more… modern. The good thing about this plugin is that it doesn’t require dedicated place, it has a ton of options, and it is very customizable (you can assign any color, it has pre-built skins, and you can pick it’s position on the screen). You can see the demo by clicking on the links below.

jQuery, Programming

11 Responses to “MessageBar – just another jQuery plugin”

  1. Yajaira Yearta says:

    After having spent substantial time with Black Ops, I stand by my initial impressions. The overall balancing has proven to be exceptional as there is no single “money” class to exploit or be forced to use in tough games. The maps are fun, weapons and upgrade system a blast and all of the customization available makes the game really enjoyable.

  2. Steve says:

    Hello,

    How can I get this to display my text between the div’s as the message without having to hardcode my message into the js file?

    As it is now, my message is not being displayed it just shows “Error message”.

    My Dynamic Message
    ……
    $(‘#message_bar’).displayMessage({
    color : ‘white’,
    skin : ‘ff’,
    background: ‘#d3daed’
    });

    Thanks

  3. Andrey Voev says:

    Hello Steve,

    You are missing the message argument in the function (if you don’t supply one, the default “Error message” will be shown).
    So just add the message like this:


    My Dynamic Message
    ……
    $('#message_bar').displayMessage({
    message : 'My awesome message',
    ...
    });

    I hope that helps.

  4. Steve says:

    Hi Andrey,

    What I thought I could do with your code is to write:

    Some Message Here

    on my page and have that Some Message Here be part of the message_bar displayed.

  5. Steve says:

    sorry, its stripping out my code. Let me try again:

    Some Message Here

  6. Steve says:

    hmm,

    ok, well it would be div tags with class = message_bar and the text inside the div “Some Message Here” displayed using your script. But that message changes depending on what the user just did.

Leave a Reply