I'd like to pass with a link to values inside some form. I've read in
other posts that it's possible if i include the forms inside a html
<div>...
So here it's my code of the view :
I'd like to pass with a link to values inside some form. I've read in
other posts that it's possible if i include the forms inside a html
<div>...
That sounds made up to me. Links (without javascript help) don't
submit forms. if you have to have a link that submits a form, by far
the easiest way is to have a link whose onclick is $
('some_form').submit() (link_to_function makes this easy).
I'd like to pass with a link to values inside some form. I've read in
other posts that it's possible if i include the forms inside a html
<div>...
That sounds made up to me. Links (without javascript help) don't
submit forms. if you have to have a link that submits a form, by far
the easiest way is to have a link whose onclick is $
('some_form').submit() (link_to_function makes this easy).
Fred
hi Fred,
this is the topic Submitting form with link_to - Rails - Ruby-Forum where i've
read the suggestion...
So i was searching the right syntax for doing that, i'll try to know
more about link_to_function, but i'd like to know if it's really
possible in the other way, cause i've found more than one person that
suggest that way...
Tanks for your reply
I'd like to pass with a link to values inside some form. I've read
in
other posts that it's possible if i include the forms inside a html
<div>...
That sounds made up to me. Links (without javascript help) don't
submit forms. if you have to have a link that submits a form, by far
the easiest way is to have a link whose onclick is $
('some_form').submit() (link_to_function makes this easy).
My car_prefs div encapsulates all the textfields and dropdowns and then
the :complete just updates another div - account_car_prefs - when the
action has completed. You might also try looking at the source to make
sure that the html is being generated properly, I say this because it
seems more often then not, for me, that I always get the { } put in the
wrong place when using additional options and you can also tell if you
are using them wrong because the html doesn't get formed right.
My car_prefs div encapsulates all the textfields and dropdowns and then
the :complete just updates another div - account_car_prefs - when the
action has completed. You might also try looking at the source to make
sure that the html is being generated properly, I say this because it
seems more often then not, for me, that I always get the { } put in the
wrong place when using additional options and you can also tell if you
are using them wrong because the html doesn't get formed right.
-S
Hi Shandy,
really thanks for your reply.... NOw it works!!!
I was really SAD for the first answer now i'm better
My car_prefs div encapsulates all the textfields and dropdowns and
then
the :complete just updates another div - account_car_prefs - when the
action has completed. You might also try looking at the source to
make
sure that the html is being generated properly, I say this because it
seems more often then not, for me, that I always get the { } put in
the
wrong place when using additional options and you can also tell if
you
are using them wrong because the html doesn't get formed right.
-S
Hi Shandy,
really thanks for your reply.... NOw it works!!!
I was really SAD for the first answer now i'm better
Just so you're aware, the above does rely on javascript and the
prototype libraries - it won't work without javascript.