Hey Pawel,

pawel kaminski a écrit :
> Can anyone show me a solution or point to a place where i can find one
> to do such thing....
> i have two drop list and i want to update one depending on value of the
> other one....using ajax.updater...some examples please..

Hmmm I didn't try, but from the look of things, you would just have to
fetch the list of <option> elements from the server side, and define
your updater on the <select> element.

Remember Ajax.Updater uses Element.update by default, which only
replaces the *inside* of the element.  So make sure NOT to send the
<select> element again from the server side.

Now, I'm not too sure all popular browsers will react kindly to this
specific change of your page.  If you can't get it to work across all
browsers, you might have to go for cross-browser scripting as a result,
e.g. using Builder.node, and a text/javascript response MIME type.

'HTH

-- 
Christophe Porteneuve aka TDD
[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---

Reply via email to