On 8/16/06, Patrick Aljord <[EMAIL PROTECTED]> wrote:
On 8/12/06, Nicolas Paton <[EMAIL PROTECTED]> wrote:
> > J´ai deux collection_select:
> http://www.bigbold.com/snippets/posts/show/1916
> NP
ok merci beaucoup mais en fait je préfère un truc en AJAX mais
j'arrive pas à le faire marché.
J'ai deux collection_select, quand je change le premier le deuxième
update son contenu par ajax:
voici mon list.rhtml:
<%= collection_select (:region, :id, @regionall, :id,
:title,html_options={:onChange => "new
Ajax.Updater('related_provinces','/categories/related_provinces/" +
"?id='+this[this.selectedIndex].value,
{asynchronous:true, evalScripts:true});"}) %><br>
<%= render :partial => "related_provinces" %>
c'est bon j'ai résolu mon problème en rajoutant options={} avant
,html_options={...
_______________________________________________
Railsfrance mailing list
[email protected]
http://lists.rubyonrails.fr/mailman/listinfo/railsfrance