Put that window.open code into the submitHandler. Jörn
On Sun, Feb 15, 2009 at 11:47 AM, kibi <sergeykibit...@gmail.com> wrote: > > I used jQuery Validation plugin. > Validation works fine. Could you tell me, how to change form > attributes, that new pop-up window raised after validation (I don't > need alert message – only new window) > > Here code of validation: > Html form : form id='f1' name='f1' method='post' action='result.htm' > JavaScript validation code: > > $(document).ready(function() { > > var validator = $("#f1").validate({ > > rules: { filed0: {required: true, minlength: 2}, > filed1: { required: true, minlength: 2 }, > filed2: { required: true, minlength: 2 }, > ….. > ….. > > submitHandler: function() { > alert("Form completed!"); > $(form).ajaxSubmit(options); > > > New pop-up form: > form id='f1' name='f1' method='post' action='result.htm' > onsubmit="window.open('','Order > Confirmation','width=600,height=600,scrollbars=yes')" > After pressing submit button – I see new page before validation : - ( > > What should I change in ajaxSubmit options? > > Thanks for avice. > >