Problem With Drop Down LIst

Hi ,

i have two drop down list where the data of it retrieve from the DB
table. this one is working 100% .

bt now i want do some thin like this.
when the fist drop down list is selected the second one values should be
change according to that.

*   for example when the county is been selected according to that

country the States drop down list must be change.

If some one knows how to do this pls reply.

Thanks
Nadeesha

You can use an AJAX request to go to another page that will give you
back
some options for that other select box using an RJS request:

other_page.rjs
page.replace_html “other_select_box”, options_for_select(@options)

On Jan 8, 2008 2:27 PM, Nadeesha M. <
[email protected]> wrote:

Posted via http://www.ruby-forum.com/.


Ryan B.
http://www.frozenplague.net
Feel free to add me to MSN and/or GTalk as this email.

Ryan B. wrote:

You can use an AJAX request to go to another page that will give you
back
some options for that other select box using an RJS request:

other_page.rjs
page.replace_html “other_select_box”, options_for_select(@options)

On Jan 8, 2008 2:27 PM, Nadeesha M. <
[email protected]> wrote:

Posted via http://www.ruby-forum.com/.


Ryan B.
http://www.frozenplague.net
Feel free to add me to MSN and/or GTalk as this email.

Hi Ryan

Thanks for the tips.

bt i have little problem. bz still i did not able to figer out how this
AJAX things works.(I am new to this ROR :slight_smile: ) . so could be give some
example or some more guide line for this. (Sorry to trouble u PAL).

If ok pls send ur GTalk ID

Thanks
Nadeesha

([email protected])

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs