Throw easy to style alert()s and confirm()s in your browser window
Quick examples
Documentation
Coming soon, I hope.
Download
v0.8.3 (tarball)
NOTE: This is still beta code. As such the API is still subject to change (hopefully not much however).
NOTE: This library requires prototype.
Features
-
Easy to use and customizable API
-
Customizable transition effects using http://script.aculo.us
-
Embed HTML markup to add style to your notifications
-
CSS customization of your notifications
-
Degrades nicely so browsers without javascript enabled can still work.
Licensing
BSD based license, download it and look at license.txt
Comments/Concerns?
Write to me at junk@thinkof.net.
Project colophon
Written by Greg Militello from Dyrect Media Group, LTD.
This is based on code from prototype, http://script.aculo.us and lightbox (the overlay PNG is still Lokesh's for now).
Check out those projects!
Also a note should be made to the guys at the Rails spinoffs Mailing list.
They have been incredibly helpful. Thanks!
Change log
-
v0.8.3
-
Moved the close link for Notify.Alert() to the bottom, and changed it's style to match
Notify.Confirm()'s links.
-
Adjusted vertical centering.
-
Allowed for link text changes through the options, for foreign languages or other messages.
-
If 'this' is passed into Notify.Confirm() as the second parameter, test the object to see if it
is an anchor, or a form tag. If it is a form, submit it on confirm; If it is an anchor set the
browser location to the href value.
-
v0.8.0 1st preview release
-
Removed global scope JS variable for transition effects. (Gregory Hill)
-
http://script.aculo.us no longer required, but can still be used.
-
Added a top margin + scrollbar height to the popup window.
-
v0.7.3
-
When triggered, send the browser to the top.
-
v0.7.2
-
Refactored show/hide methods into the Notify.Base class.
-
v0.7.1
-
v0.7
-
The initial project, submitted for pier review.
Todo/bug list
Have a bug or a feature you want me to add? Email it to me at junk@thinkof.net.