On Aug 1, 4:23 pm, serenobs <[email protected]> wrote:
> Hello.
>
> <%= link_to_remote 'click here', :update=>'some_div', :url=>
> {:action=>'some'}, :submit=>'group' %>
> is what I want to implement using  Ajax.updater.
>
> To do this I coded ( it is invoked when I clicked some link or button,
> whatever )
> new Ajax.Updater('some_div', url(:action=>'some'),
>       { parameters: $('group').serialize(true), method: 'get'} );
>
> group div looks like below:
> <div id="group">
>   <%= radio_button_tag(:myvalue, 1 %>
>   <%= radio_button_tag(:myvalue, 2 %>
> </div>
>
> on the controller's 'some' looks like below
> def some
>    if params[:myvalue] == blah blah
> end
>
> if i use link_to_remote with submit options, it worked properly.
> but in case of my code using Ajax.updater, params[:myvalue] is not set
> properly.
>
> What's wrong with me?
> Somebody help me.
>
This is a Prototype/Scriptaculous group, not a Rails one. There might
be people here who read Rails, but you will probably get more success
if you post the Javascript which is actually received by the browser,
rather than the Rails source.


> Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to