# Auto Postback in Ruby On Rails

**URL:** <https://www.ruby-forum.com/t/auto-postback-in-ruby-on-rails/142580>\
**Category:** Rails\
**Created:** [July 9, 2008, 12:05pm UTC](https://www.ruby-forum.com/t/auto-postback-in-ruby-on-rails/142580 "2008-07-09T12:05:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![soutom](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/65b543/32.png) [@soutom](https://www.ruby-forum.com/u/soutom)\
**Post date:** [July 9, 2008, 12:05pm UTC](https://www.ruby-forum.com/t/auto-postback-in-ruby-on-rails/142580/1 "2008-07-09T12:05:36Z")

</div>

in some other language have a concept e.i “auto postback”

So, in Ruby on rails is there any such option e.i “auto postback”  
or same as “auto postback”

basically what i want ot do is that i have 2 select box  
One for “Industry” and other for “Chemical”

1st we show all the industry in “Industry” select box.  
if we select any 1 industry from there, then the corrosponding  
chemicals will b shown in the “chemical” select box…

please help me any one…

THankx

---

<div class="post-metadata">

**Author:** ![soutom](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/65b543/32.png) [@soutom](https://www.ruby-forum.com/u/soutom)\
**Post date:** [July 9, 2008, 12:19pm UTC](https://www.ruby-forum.com/t/auto-postback-in-ruby-on-rails/142580/2 "2008-07-09T12:19:08Z")

</div>

On 9 Jul 2008, at 11:04, Soutom wrote:

> 1st we show all the industry in “Industry” select box.  
> if we select any 1 industry from there, then the corrosponding  
> chemicals will b shown in the “chemical” select box…

same as any other language: give the select box an onchange (or use  
observe\_field/observe\_form)

Fred

---

<div class="post-metadata">

**Author:** ![soutom](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/65b543/32.png) [@soutom](https://www.ruby-forum.com/u/soutom)\
**Post date:** [July 9, 2008, 12:32pm UTC](https://www.ruby-forum.com/t/auto-postback-in-ruby-on-rails/142580/3 "2008-07-09T12:32:18Z")

</div>

On 9 Jul 2008, at 11:29, Soutom wrote:

> Thankx a lots…
> 
> will u please send me the proper syntax (if possiable 1 example) of  
> observe\_field and observe\_form

Check out the api docs for them ([api.rubyonrails.org](http://api.rubyonrails.org))

Fred

---

<div class="post-metadata">

**Author:** ![soutom](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/65b543/32.png) [@soutom](https://www.ruby-forum.com/u/soutom)\
**Post date:** [July 9, 2008, 12:31pm UTC](https://www.ruby-forum.com/t/auto-postback-in-ruby-on-rails/142580/4 "2008-07-09T12:31:39Z")

</div>

Thankx a lots…

will u please send me the proper syntax (if possiable 1 example) of  
observe\_field and observe\_form

thanking You  
On Jul 9, 3:18 pm, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![soutom](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/65b543/32.png) [@soutom](https://www.ruby-forum.com/u/soutom)\
**Post date:** [July 9, 2008, 12:49pm UTC](https://www.ruby-forum.com/t/auto-postback-in-ruby-on-rails/142580/5 "2008-07-09T12:49:22Z")

</div>

thankx … thankx a lots…

On Jul 9, 3:30 pm, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
