jQuery Bootstrap Messages: Plugin to display user messages using Bootstrap

Recommend this page to a friend!
  Info   Example   Screenshots   View files Files   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 94 All time: 425 This week: 5Up
Version License JavaScript version Categories
gdmessage 1.0Freely Distributable1.0Animation, HTML, jQuery
Description 

Author

This is a jquery plugin to display user messages using Bootstrap.

It can make messages alerts and other types of messages to show to the user.

Currently it supports showing messages of types error, danger, status, info, warning, primary, validate and success.

It can set the messages with buttons for dismissing and closing with fading out effects.

Picture of Gerry Danen
Name: Gerry Danen <contact>
Classes: 1 package by
Country: Australia Australia

Example

<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Messages - Custom Plugin</title> <link rel="stylesheet" href="bootstrap/bootstrap.min.css" type="text/css"/> <link rel="stylesheet" href="css/jquery.gdMessage.css" type="text/css"/> </head> <body> <h2 style="text-align: center">jQuery Plugin - Example</h2> <div class="container"> <div id="gdMessageContainer"> </div> <hr> </div> <script src="//code.jquery.com/jquery-2.1.3.min.js"></script> <script src="bootstrap/bootstrap.min.js"></script> <script src="js/jquery.gdMessage.js"></script> <script> $(document).ready( function () { populateContainer(3); showMessages(); } ); function showMessages() { $('#myMess1').gdErrorMessage('1. This is an error message, using gdErrorMessage', {dismiss: true}); $('#myMess2').gdMessage('2. This is a default message without options', {type: 'default'}); $('#myMess3').gdInfoMessageClosable('3. This is a dismissable info message, using gdInfoMessageClosable'); } function populateContainer(count) { var html = ''; for (var number = 1; number <= count; number++) { html += "<div id=\"myMess" + number + "\"></div>"; } $("#gdMessageContainer").gdMessageClear().html(html); } </script> </body> </html>

Details

Installation

  • copy the entire package to a folder of your choice
  • determine if you need/want to replace the files in the bootstrap folder (see http://getbootstrap.com/)

All path references are relative, so if you move files, or rename folders, be aware that you may need to change some references.

example.php is a scaled-down version from index.php and is intended to be studied on how to customize

index.php is a mini application that loads information via ajax, and messages via the jquery.gdMessage.js plugin

No license required. Use as you see fit.

Gerry Danen gdanen@yahoo.com


Screenshots (1)  
  • message_examples.png
  Files folder image Files (16)  
File Role Description
Files folder imagebootstrap (2 files)
Files folder imagecss (1 file, 1 directory)
Files folder imagejs (1 file)
Accessible without login Plain text file example.php Example Smaller example
Accessible without login Plain text file index.php Example Full example
Accessible without login Plain text file information.html Data Information file, used by index.php
Accessible without login Plain text file readme.txt Doc. installation instructions

  Files folder image Files (16)  /  bootstrap  
File Role Description
  Accessible without login Plain text file bootstrap.min.css Aux. Bootstrap CSS
  Accessible without login Plain text file bootstrap.min.js Aux. Bootstrap JS

  Files folder image Files (16)  /  css  
File Role Description
Files folder imagegdMessage (7 files)
  Accessible without login Plain text file jquery.gdMessage.css Data main css for plugin

  Files folder image Files (16)  /  css  /  gdMessage  
File Role Description
  Accessible without login Image file msgDefault.png Icon css icon
  Accessible without login Image file msgError.png Icon css icon
  Accessible without login Image file msgInfo.png Icon css icon
  Accessible without login Image file msgPrimary.png Icon css icon
  Accessible without login Image file msgSuccess.png Icon css icon
  Accessible without login Image file msgValidate.png Icon css icon
  Accessible without login Image file msgWarning.png Icon css icon

  Files folder image Files (16)  /  js  
File Role Description
  Plain text file jquery.gdMessage.js Class jquery plugin

 Version Control Unique User Downloads Download Rankings  
 0%
Total:94
This week:0
All time:425
This week:5Up