Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
a new jquery plugin to handle flash messages
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README
jflash.css
jflash.js
test.html

README

JFLASH is a jquery plugin to generate flash messages via ajax

ok, its under development, i will improve it probably daily :-)

You just have to add the css to your project (together with jquery and the jflash.js), create a div with id = flash in your layout
and start to use it

so you have your layout.html.erb with something like

<div id="flash">
</div>


so in your javascript you just have to do

$('#flash').jflash({message:'Hello world!', flash:'notice'});

and voi-la. your flash will be displayed and then disappear 

Today we support just flash notices and flash error. You can pass some options to the plugin. See the example test.html

options supported today:

//Params:
//message -> the message that should be passed
//fadeIN -> ms for fadein effect
//FadeOut -> ms for fadeout effect
//display -> time that we will show our flash message
//flash -> the flash that you want (notice, error)


Something went wrong with that request. Please try again.