awfDialog :: AJAX Enabled Dynamic Dialog Wizard Class :: Simple Example
 
Simple Dialogs
Welcome to the Simple Dialog Example.

Exaples on this page show the bare minimum code needed to generate an awfDialog with default behaviors and no Ajax enabled. Several examples down the page shows different settings and how you might use an awfDialog on your website or in your web applications. Beneath each example is the code used to generate it.

Example 1:

Test
This is a simple dialog.


Notice this simple example is pretty plain and has virtually no fancy display elements, although it is rendered using the awfDialog class just like the dialog at the top of this page. Also notice that we've left out some optional arguments we'll explore in Example 2. The first argument, ID, is the only required arument to instantiate a new awfDialog.

Example 2:

In the prior example, we set the dialog's CSS id, Title string, and Message string. By default, an awfDialog is non-modal, meaning it can be closed. However, since $simple1 did not know where to find it's dependent images the exit button did not render. Let's fix that:
Test
This is a simple dialog.


Example 3:

Next, let's extend our example by using the remaining three optional arguments: $icontype, $modal, and $width.
Test
This is a simple dialog.


Example 4:

As you can see, while Example 3 is a functional dialog box it doesn't exactly look amazing. That doesn't mean it can't be. Look at the last example for an idea on the methods the awfDialog class makes available to better manipulate display control, even of simple dialogs.
Now THIS is a dialog!
This was originally a simple dialog. But by manipulating a few extra properties and firing a few events, we've now turned it into something special.

What are you waiting for? Spend some time reading the Usage Guide, the CSS Reference, and playing with the other examples, then get busy trying it out!


Docs

About / Features

Change Log

Usage guide

CSS Reference

License

Examples

Simple Implementation

Gradient Builder