Displaying 1 result from an estimated 1 matches for "readysubmit".
2008 Jun 18
1
strange fire custom event
...;script src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.2/
prototype.js"></script>
<script>
//i pass the submit event with custom event
$(''form'').observe(''submit'', function(e){
$(''form'').fire(''custom:readySubmit'', {submitEvent: e})
})
//i expect the submit event will be stop
$(''form'').observe(''custom:readySubmit'', function(e){
e.memo.submitEvent.stop();
})
</script>
---------------------------------------------------------------------------------------...