Forum: Ruby on Rails Javascript submit form & RJS

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.
57e939ff00f9df2670a09f417c08da5e?d=identicon&s=25 Josh Knowles (Guest)
on 2006-06-07 20:04
(Received via mailing list)
I'm using javascript to submit a form using the onclick and getting a
response using RJS.  Everything works fine except for the returned
response
is coming back as text no matter what I do.  I am attempting to
explicitly
set the Content-Type header and I tried using the :type param to render
but
nothing seems to work.  Any suggestions?

Env:

OSX
Lighttpd
Rails Edge

Thanks!
This topic is locked and can not be replied to.