Displaying 1 result from an estimated 1 matches for "view_n".
Did you mean:
view_r
2007 Dec 08
2
Assigning submit handler to form
Hi folks,
A quick question for somebody. I''m adding a simple validation JS to my
form by attaching it like so:
$(''my_form'').observe(''submit'', function(e) { return
view_ns.validate_form(Event.element(e)); });
The validate_form() function returns true or false. But regardless of
it''s return value, the form is always submitted. ''sup wi dat''?
Any ideas? Oh, and it''s wrapped in an anonymous function that''s passed
to a onloa...