Everytime the user click on a radio_button, I wan’t to verify that all
others are checked and show a link to the next page. But I can’t verify
if all my radio_buttons are checked. I can only show the link if only
one radio is clicked.
Code :
you could put them all in a remote form and instead of calling the
remote_function in onclick submit that form. than you get them all in
your controller as params.
you could put them all in a remote form and instead of calling the
remote_function in onclick submit that form. than you get them all in
your controller as params.
Can you give me more details plz (a little example of code…)
Thanks
but when I click on the radio_button, I’ve the next error :
try {
Element.update(“next”, “\u003Ca
href=”/questionnaires/list_questions?page=1"\u003ENext\u003C/a\u003E");
} catch (e) { alert(‘RJS error:\n\n’ + e.toString());
alert(‘Element.update(“next”, “\u003Ca
href=\”\/questionnaires\/list_questions?page=1\"\u003ENext\u003C\/a\u003E");’);
throw e }
seems to generate an error (so at least clicking the checkbox seems to
submit the form and call the action)
as far as i can see, it tries to render the ajax response as normal html
or text
(was this rendered as content of the page or an actual error message by
the browser?)
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.