Hi folks. Me again.
I''ve been really confused about the syntax behind a Prototype form
submission. I want to grab the form components and be able to
manipulate them in my JS, then reset components of the form.
The problem I have is the conflict/synergy between the onSubmit in the
first line of the form, and the onclick in the button input field down
below. I''m not sure which takes precedence. I''ve tried many
combinations and some have worked, some don''t. The issue with the
ones that worked was around how I receive them using the
form.serialize, then how I strip out individual components into
variables after that.
Very confusing. So I wish to set all of this straight as I wish to
use forms in the future quite often, using this sort of refresh-less
method.
- what is the proper form syntax? onsubmit or onclick? I wish to
have forms submitted using the return key.
- if I want to take advantage of some of the streamlined functions in
my js function, how can I serialize the form while having access to
individual field names?
Cheers
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---