Forum: Ruby on Rails On selecting the country, state dropdown gets refreshed

Posted by BalaRaju Vankala (Guest)
on 2012-09-30 14:24
(Received via mailing list)
Hello Every one
    I have a small doubt . How  On selecting the country, state dropdown
gets refreshed . for Ex i selected india . i got all states of india in
drop down list.
Posted by Colin Law (Guest)
on 2012-09-30 14:29
(Received via mailing list)
On 30 September 2012 13:23, BalaRaju Vankala <foreverbala4u@gmail.com> 
wrote:
> Hello Every one
>     I have a small doubt . How  On selecting the country, state dropdown
> gets refreshed . for Ex i selected india . i got all states of india in drop
> down list.

You will have to use javascript to do this, or update the list using
an ajax call.

Colin
Posted by BalaRaju Vankala (Guest)
on 2012-09-30 14:35
(Received via mailing list)
Hey Thank you for response... i am fresher can you describe little bit 
more
or can you send any links..

On Sun, Sep 30, 2012 at 5:57 PM, Colin Law <clanlaw@googlemail.com> 
wrote:

>
>
>


--
నేను
కొంచం తపన,
 కాస్త ఆసక్తి,
కొన్ని కలలు,
 కాసిన్ని ఊహలు కలిపేస్తే
 నేను
 bala raju
Posted by Colin Law (Guest)
on 2012-09-30 14:53
(Received via mailing list)
On 30 September 2012 13:34, BalaRaju Vankala <foreverbala4u@gmail.com> 
wrote:
> Hey Thank you for response... i am fresher can you describe little bit more
> or can you send any links..

Look for tutorials on javascript and after you have mastered those it
is probably a good idea to move to jQuery.  For using ajax then google
for rails ajax and you will find many examples.

As a beginner I suggest you work right through some good rails
tutorials such as railstutorial.org (which is free to use online).
This will introduce you to the basics or rails, including ajax.  Make
sure that any tutorial you use is for rails 3 and that you have the
correct version of rails installed.

Colin
Posted by "Alexandre Calvão" <apotema@gmail.com> (Guest)
on 2012-09-30 15:47
(Received via mailing list)
http://railscasts.com/episodes/88-dynamic-select-m...

===================
*Alexandre Mondaini Calvão*

"*Nossa recompensa se encontra no esforço e não no resultado. Um esforço
total é uma vitória completa*." [Ghandi]


2012/9/30 Colin Law <clanlaw@googlemail.com>
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.