Hi! In my app I previous had a form using field validation. I therefore hade the following after the form.
<script type="text/javascript"> var valid1 = new Validation('myform'); </script> This works fine. I have now modified things and I know want to update som elements after the form has returned a successfull value. For testing i removed the validation and added this: <script type="text/javascript"> function dosubmit( ) { new Ajax.Updater( 'result', './test.php', { method: 'post', parameters: $('myform').serialize() } ); $('myform').reset(); } </script> This work as it should for me submitting the form and returning a value for the div 'result' to be updated with. The difference in the form is that I now have a button with onsubmit, instead of a input type="submit". My question is how I now get to validate the form as before before the function dosubmit is run? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---