[UPHPU] modal popup form over form
Wade Preston Shearer
lists at wadeshearer.com
Tue Nov 4 11:30:32 MST 2008
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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2425 bytes
Desc: not available
Url : http://uphpu.org/pipermail/uphpu/attachments/20081104/d64cab12/smime.bin
More information about the UPHPU
mailing list