Extract the form from the shadowbox and submit it from the parent window

I have a form in the shadow and when the user clicks the submit button (or the link with onclick, I don't mind) I want to login, close the shadow block, then submit the form data from the parent window. Can anyone tell me how to do this? I cannot work it out.

Something like this semi-pseudocode ...

$("#my_form").submit(function(){
  var parent = window.parent;
  parent.Shadowbox.close();
  parent.submit($(this));
}

      

thanks, max

+2


a source to share


1 answer


If you are not picky about closing the shadow window, you can simply use target="_parent"

in the form tag.



+1


a source







All Articles