Skip to content

ilrico/jquery.messageflow

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published