🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

messageFlow is a small jQuery notification plugin used to create Android toast-style feedback messages with stackable and auto-fade capabilities.

Notification toast-message

Documentation

jquery.messageflow

A jQuery plugin to show feedback messages (error, warning, info) with transparency and autofading features

usage:

.createContainer(id, watchDuration, fadeoutDuration)
id string, default "messageflow_container0"
watchDuration int, default 5000 (ie 5 seconds)
fadeoutDuration int, default 5000
Creates a new container, by default bottom right (can be edited in jquery.messageflow.css)

.MessageFlow(type, text, *msg_id)
type string out of four choices: 'error', 'warning', 'success', 'info'. Will display messages in red, orange, green and blue resp.
text string, message in itself! msg_id string, message's <div> id if needed to modify CSS attributes
Shows a new message in specific container

ex:
mf = new MessageFlow();
mf.createContainer();
mf.addMessage('error', 'still some stuff to do');
mf.addMessage('success', 'Hello World!');
will show one error message followed by a success message, autofading after 10 seconds.


You May Also Like