Forum: Ruby AJAX not working

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Rajat G. (Guest)
on 2008-11-01 23:42
(Received via mailing list)
Hi Everyone,

I need your help.

I have created a form that makes an Ajax call to submit the data.

It is working fine on 1 page of the site ( and same code is not working
properly at the other page (

It seems like function is not getting handled properly i.e.

on successful form submission, controller does the following -
        render :update do |page|
          page << "$('contact_us_table').hide();"
          page << "$('contact_status').show();"

which should hide the contact form and display a message.

Instead, for, it just dumps
following -
          page << "$('contact_us_table').hide();"
          page << "$('contact_status').show();"

How can I fix this?

Rajat G.

Ph:   206-499-9495
Add: 16140 SE EastGate Way APT E-204
       Bellevue, WA 98008
Edipofederle E. (Guest)
on 2008-11-02 05:13
Write in Ruby On Rails categorie.
This topic is locked and can not be replied to.