Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
AJAX page.call not working
Rajat Garg
11/1/2008 9:38:00 PM
[Note: parts of this message were removed to make it a legal post.]
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/ho...
) and same code is not working
properly at the other page (
http://www.tripoutlook.com/home/...
)
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/...
, 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.piloto...
-----------------------------------------------------------------------------------------------------
Flying is the second greatest thrill known to man. Landing is the first!
1 Answer
Edipofederle Edipofederle
11/2/2008 3:14:00 AM
0
Write in Ruby On Rails categorie.
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
AJAX page.call not working
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password