On 4 Nov 2008, at 8:13, MilesTogoe wrote:
I have the case on a select box needing to have an add capability (popup a form to add a new element to the list table and refresh the list) without disturbing the filled in data on the underlaying form.
Huh? What is a select box? A drop menu (<select>)? Let me restate and see if I understand what you are looking to do.
You want the user to select an item from a drop-menu. This will trigger a pop-in (a DHTML layer) that contains a form. The user will fill out and submit this form. The layer will hide. Based off of what the user filled out in the form, a new row will be added to a table of date on the same page as the drop menu. Is that correct?
If yes, this can easily be done with javascript and sounds like it might be a good use for a modal. Displaying the modal is easy as there are several pre-build solutions. Adding the new row to the table will have to be written yourself as it is custom to your form, but can be done very easily with a library such as jquery.
I've seen this done in Rails but searched around this AM trying to find a cool JQuery lightbox kind of dialog and didn't see anything like this - does anyone know of a link to a good example or tutorial of this ?
If you are looking for a modal that grays the rest of the screen (particularly one that works with jquery), here is your answer:
http://jquery.com/demo/thickbox/
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
