Andreas Boehmer [Addictive Media] wrote:
Bert Doorn wrote:
[ select category ] [ add ] [ edit ] [ delete ]
You can have option groups in the select. Example:
<form action="whatever">
<select name="product">
<option value="">Select Product</option>
<optgroup label="Fruits">
<option>Apple</option>
<option>Orange</option>
<option>Lemon</option>
</optgroup>
...
</form>
The problem is that we are not only allowing to add/edit/delete one level of
the hierarchy, but all of them. Imagine it more to be like this:
[Add] [Edit] [Delete] Folder 1
[Add] [Edit] [Delete] SubFolder 1
[Add] [Edit] [Delete] SubFolder 2
[Add] [Edit] [Delete] SubSubFolder 1
[Add] [Edit] [Delete] SubSubFolder 2
[Add] [Edit] [Delete] SubFolder 3
[Add] [Edit] [Delete] Folder 2
Although it's currently impossible with a normal select list, you can
instead use radio buttons or checkboxes within nested lists.
<ol>
<li><label><input type="radio"> Fruits</label>
<ol>
<li><label><input type="radio"> Apples<label>
<li><label><input type="radio"> Oranges<label>
<li><label><input type="radio"> Lemon<label>
</li>
<li>...</li>
</ol>
Just fill that out with all the necessary attributes and values, then
add some submit buttons for add, edit and delete.
--
Lachlan Hunt
http://lachy.id.au/
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************