Building Your Own Dialogs Support
This time we're going to take the basics one step further, and create our own dialog box. We'll use this dialog to get special details about the kind of code the user wants to insert. We'll then use some JavaScript to check our form values are correct, then build the code and insert it for the user.
Our sample dialog will be used to insert a standard (X)HTML layout made up of various <div> tags and a <ul> list for our navigation. Since creating the same set of nested divs over and over again is a bit dull, we'll use our new extension to speed up our productivity.
The code for this simple extension is available for download.
Matt Machell
A man of many talents, Matt has been a web designer, technical editor, and jewellery picker. He is currently on contract for the Birmingham City University, producing pages for research centres.
He has tech-edited a dozen books on web design and development for glasshaus, Apress and Sitepoint.
He likes music with loud guitars and games with obscure rules.
His website can be found at: http://www.eclecticdreams.com
He lives in Birmingham with his girlfriend, Frances, and a horde of spider plants.