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

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.
2b5b1bac34d7d1bd326d51fae39464a4?d=identicon&s=25 Brian Ellin (Guest)
on 2006-01-18 07: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.
http://brianellin.com

Running rails 1.0.0

Any ideas?

Thanks,
Brian Ellin
This topic is locked and can not be replied to.