Hey Collin,

Colin Mollenhour a écrit :
> Correct, no way to submit.. I realized that shortly after sending..
> 
> I use the javascript:; thing because I've had problems before if the
> onSubmit code fails with an error, the page will try to submit the form
> to the current page. What exactly is your suggestion?
> <form action=""> ???

AAMOF, yes, although this is inaccessible (progressive enhancement is
way better, baby!).  OR, you could use exception catching to avoid
onsubmit's event handler crashing down.

You could also start your onsubmit handler code by "castrating" the
event (Event.stop(e)) to make sure it won't propagate, even if an error
occurs (this to double-check, but I'm pretty sure it works).

-- 
Christophe Porteneuve aka TDD
[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---

Reply via email to