Forum: Ruby on Rails form_remote_tag and 302 redirects under IE6 bug

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.
Brian E. (Guest)
on 2006-01-18 08:23
(Received via mailing list)
I believe I've found a bug in which a custom HTTP code handler in the
code generated by form_remote_tag does not get called under IE6.  The
below example simply redirects the browser to the value in the
location header when it gets back a 302 redirect:

#### start code ####
<%= form_remote_tag :url => {:action => "comment", :id => @article},
                    :position=> :bottom,
                    :update => {:success => 'commentList'},
                    :loading => "loading()",
                    :complete => "complete(request)",
                    :failure => "failure(request)",
                    :html => {:id=>"commentform",:class=>"commentform"},
                    302 =>
"document.location=request.getResponseHeader('location');" %>
##### end code ####

This works fine under firefox, but the javascript assigned to the 302
handler never gets called in IE.  No javascript errors are raised, and
replacing the javascript with a simple alert('foo'); ensures that the
js never gets called.  To see this in action, you may look at my Typo
blog and try to leave an openid authenticated comment.

Running rails 1.0.0

Any ideas?

Brian E.
This topic is locked and can not be replied to.