What is it?
js.Dialog is a JavaScript library for displaying (pseudo-)modal dialogs that are embedded in web pages. It is based on the excellent Prototype and Script.aculo.us JavaScript libraries.
Click on the following button for a simple example dialog:
If you are familiar with the JavaScript alert() function, this example is simple enough. The source code looks as follows:
Dialog.alert('Hello World!');
This is of course not the end of it: Beside replacements for the standard JavaScript dialogs (alert(), confirm() and prompt()), it is very flexibel, styleable (using CSS), expandable, and can be used as a basis for much more complex dialogs.:
The source code for the above example is a tad too complex to list it here (see this page’s source code if you are interested) but it is still a lot simpler than if you would programm it all by yourself.
For more examples and information, please see the documentation pages.
And as always: have fun using this! :-)
Sascha Leib