AJAX page.call not working

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();”

which should hide the contact form and display a message.

Instead, for http://www.tripoutlook.com/home/publishers, 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
Web: http://www.pilotoutlook.com

Write in Ruby On Rails categorie.

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