title: How to refresh and close parent window from simplemodal (Jquery)
body: <p>I am using a simplemodal to open up another page through iframe. How could I close the modal window and refresh parent page after the page has successfully submitted? I don't want to close it if backend validation didn't pass. </p>
  
  <ul>
  <li>I submit modal window</li>
  <li>verify if backend validation succeded or not</li>
  <li>if yes, close the modal window and reload parent page</li>
  <li>if Not, show validation messages </li>
  </ul>
  
  <p>Thanks in advance</p>