Sorry, need to fix my own code.

function dosubmit() {
    val = valid.validate();
    if (val) {
       new Ajax.Updater( 'result', './test.php', { method: 'post',
           parameters: $('myform').serialize() } );
       $('myform').reset();
    }
    return val;
}


Иван Генчев wrote:
> Sorry to be abrupt, but "return valid.validate()" is terminating this 
> function. the "new Ajax.Updater..." is never going to execute. This 
> should work:
>
> function dosubmit() {
>     if (valid.validate()) {
>        new Ajax.Updater( 'result', './test.php', { method: 'post',
>            parameters: $('myform').serialize() } );
>        $('myform').reset();
>     }
> }
>
>   


--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to