Forum: Ruby AJAX page.call not working

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9c3ca68871c5e2218e8e4a0d73f6b684?d=identicon&s=25 Rajat Garg (rajatgarg)
on 2008-11-01 22: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 (
http://www.tripoutlook.com/home/contact) and same code is not working
properly at the other page (http://www.tripoutlook.com/home/publishers)

It seems like page.call 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();"
        end


which should hide the contact form and display a message.

Instead, for http://www.tripoutlook.com/home/publishers, it just dumps
the
following -
          page << "$('contact_us_table').hide();"
          page << "$('contact_status').show();"

How can I fix this?



--
Rajat Garg


Ph:   206-499-9495
Add: 16140 SE EastGate Way APT E-204
       Bellevue, WA 98008
Web: http://www.pilotoutlook.com
5d052a386fa13aceec719a8f37a6231c?d=identicon&s=25 Edipofederle Edipofederle (edipofederle)
on 2008-11-02 04:13
Write in Ruby On Rails categorie.
This topic is locked and can not be replied to.