logo

New Response

« Return to the main article

You are replying to:

  1. I have just found a way to submit a form from within a modal window - place the form within an IFRAME in the modal window!

    When the form is submitted you can call parent.sendAndClose() (the modla window is the parent of the IFRAME) passing one of the field values as a parameter to be sent back to the calling form.

    I have a main form with amongst other things, an "upload image" button. Clicking on this opens the modal window with an IFRAME containing an HTML File Upload object. User selects a file, form is submitted and the location of the newly uploaded form is passed back to the calling form which immediately displays it in a DIV with contenteditable = true. The user can then click on the image and resize it.

    Thanks for the pointers!

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: