Greetings All!
I have a form in an iframe that I need to run a function on when the form is submitted. This same procedure occurs on a form that isn't located in an iframe and it works great. Now, I am able to submit the form within the iframe using jquery as follows (this code is located in an included js file): jQuery(winBody.document.frmName).submit(); [winBody determines whether or not the form is in the iframe] Once submitted, I need to run a function: jQuery(this.frmName).submit(function() { alert('activity_top: ' + this.method); jQuery('.fld').each(function() { this.value = unformatVals(this.value); }); return inProcess(this); }); BUT, this function is not being called when the form submits - it completely bypasses the above code. When I change ".submit" to ".keyup", the function triggers as it should. Why isn't the submit call being recognized? It has something to do with the iframe, because it works on the forms that aren't in iframes... I need a nudge in the right direction, please help... -- View this message in context: http://www.nabble.com/Recognize-iframe-form-submit-tp16960319s27240p16960319.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.