Can the observe method cancel the event ? Thanks !

<form id="testForm">
    <input type="submit" />
</form>

<script type="text/javascript">
var testForm = $( "testForm" ) ;

testForm.observe ( "submit", function ( e ) {
    alert ( "submit" ) ;
    return false ;    // return false is meaningless. It is continue
to submit.
} ) ;

/*
testForm.onsubmit = function ( e ) {
    alert ( "submit" ) ;
    return false ;     // Submittion is cannelled.
}
*/
</script>
--~--~---------~--~----~------------~-------~--~----~
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