Ajax help

  1. How can I update option in -box with Ajax ?

  2. How can I by clickin text-link update content of some

    ?

On 19 Aug 2008, at 17:53, Gi Ga wrote:

  1. How can I update option in -box with Ajax ?

You mean change the options in the select box ?

  1. How can I by clickin text-link update content of some
    ?

    link_to_remote ‘click me’, :update => ‘some_div’, :url => {:controller
    => ‘foo’, :action =>‘var’}

    Fred

Frederick C. wrote:

  1. How can I update option in -box with Ajax ?

You mean change the options in the select box ?

Yes, add / remove options in select box

  1. How can I by clickin text-link update content of some
    ?

    link_to_remote ‘click me’, :update => ‘some_div’, :url => {:controller
    => ‘foo’, :action =>‘var’}

    Thanks.

On Aug 20, 8:32 pm, Gi Ga [email protected] wrote:

Frederick C. wrote:

  1. How can I update option in -box with Ajax ?

You mean change the options in the select box ?

Yes, add / remove options in select box

Well in theory you could just do an ajax update that updates the
select box (ie where the action just renders the option tags).

Fred