How to closing a modal box after form submit?

Discussion in 'HTML & Website Design' started by amitash, Apr 7, 2011.

  1. #1
    Hello,
    I am using the css modal box described by Paul R.Hayes here - http://www.paulrhayes.com/experiments/modal/

    I inserted a form into it. The form target is in a iframe which is hidden on the same page. I want to close the modal window as soon as the form submits. But the form should be processed within the iframe (hidden). How can I achieve this.
     
    amitash, Apr 7, 2011 IP
  2. style0

    style0 Peon

    Messages:
    108
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    well, I haven't looked all that much into it, but the modal close button is just triggering different classes to the modal to hide it, so study the code and css for the close button and apply the same to the submit button.
     
    style0, Apr 7, 2011 IP