jqDialog
August 5, 2009 - 8:34am — kailashnadh
jqDialog is a small (3.7 KB minified) dialog plugin that provides smooth, persistent, non-intrusive alternatives for alert(), confirm() and prompt(). There is also a notify() dialog that pops up and goes away in X seconds.
Dependencies
jquery (1.3)
Demo
http://kailashnadh.name/code/jqdialog
How to use?
notify dialog
jqDialog.notify("This dialog will disappear in 3 seconds", 3);
/* __________________ */
jqDialog.notify("This dialog will stay");
jqDialog.close(); // this makes the dialog go awayalert dialog
jqDialog.alert("This is a non intrusive alert",
function() { // callback function for 'OK' button
alert("This intrusive alert says you clicked OK");
}
);confirm dialog
jqDialog.confirm("Are you sure want to click either of these buttons?",
function() { alert("This intrusive alert says you clicked YES"); }, // callback function for 'YES' button
function() { alert("This intrusive alert says you clicked NO"); } // callback function for 'NO' button
);prompt dialog
jqDialog.prompt("Please enter your name",
'Sam',
function(data) { alert("Your name is " + data); }, // callback function for 'OK' button
function() { alert("This intrusive alert says you clicked Cancel"); } // callback function for 'Cancel' button
);custom content dialog
jqDialog.content('No dialog controls, just custom content<br /><input type="text" name="test" />');Releases
| Official releases | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 1.2.1 | 2009-Sep-05 | 23.82 KB | Recommended for 1.0.x | ||
| 1.2 | 2009-Sep-02 | 23.68 KB | Recommended for 1.3.x | ||
