Form_remote_tag and 302 redirects under IE6 bug

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 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