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