RJS & IE Woes


#1

Hi,

I’m trying to do a very simple slide_down effect with RJS templates.

Basically a user selects a check box and a text box slides down.

This works great in firefox, but causes IE to crash. The text box
appears
and slides down. Then the browser crashes.

the in the partial is

Was There a forklift involved? <%= check_box 'incident', 'forklift'%> <% if @incident.forklift %>
<%= text_area 'incident','forklift_detail', :rows => 4, :cols =>40 -%> <% else %>
<% end -%>
<%= observe_field( 'incident_forklift', :url => { :action => 'show_forklift_detail'}, :with => "'incident_forklift='+value", :loading => "Element.toggle('loader')", :complete => "Element.toggle('loader')" ) %>

and the RJS part is

page.replace_html 'fork_detail_div', "<label

for=‘incident_forklift_detail’>Describe The Forklifts
Involvement
" +
text_area( ‘incident’,
‘forklift_detail’,
:rows=>5, :cols=>60 )
page.visual_effect :slide_down , ‘fork_detail_div’, :duration =>
0.75
page.visual_effect :highlight, ‘incident_forklift_detail’,
{:duration =>
1.5}
else
page.visual_effect :slide_up, ‘fork_detail_div’, :duration => 0.75
page.delay (1) do
page.replace_html ‘fork_detail_div’, ‘’
end

I get an error in WEBRIK

[2006-03-21 00:31:08] ERROR Errno::EINVAL: Invalid argument
c:/ruby/lib/ruby/1.8/webrick/httprequest.rb:325:in gets' c:/ruby/lib/ruby/1.8/webrick/httprequest.rb:325:insend
c:/ruby/lib/ruby/1.8/webrick/httprequest.rb:325:in _read_data' c:/ruby/lib/ruby/1.8/webrick/httprequest.rb:324:intimeout’
c:/ruby/lib/ruby/1.8/timeout.rb:55:in timeout' c:/ruby/lib/ruby/1.8/webrick/httprequest.rb:324:inread_data’
c:/ruby/lib/ruby/1.8/webrick/httprequest.rb:335:in read_line' c:/ruby/lib/ruby/1.8/webrick/httprequest.rb:225:inread_request_line’
c:/ruby/lib/ruby/1.8/webrick/httprequest.rb:86:in parse' c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:56:inrun’
c:/ruby/lib/ruby/1.8/webrick/server.rb:155:in start_thread' c:/ruby/lib/ruby/1.8/webrick/server.rb:144:instart’
c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in start_thread' c:/ruby/lib/ruby/1.8/webrick/server.rb:94:instart’
c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in each' c:/ruby/lib/ruby/1.8/webrick/server.rb:89:instart’
c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in start' c:/ruby/lib/ruby/1.8/webrick/server.rb:79:instart’
c:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:69:in
dispatch' c:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0 /lib/commands/servers/webrick.rb:59 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:inrequire
_’
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
require' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:inrequire’
c:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/server.rb:28
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
require__' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:inrequire’
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in
`require’
script/server:3

Anyone have any ideas that might help me?

Thanx in advance

Dan


#2

Guess I should have checked first.

This issue is addressed in

http://dev.rubyonrails.org/ticket/3601

Sorry If I’ve wasted anyones time