Guess I should have checked first.
This issue is addressed in
http://dev.rubyonrails.org/ticket/3601
Sorry If I''ve wasted anyones time
On 3/21/06, Liquid <has.sox@gmail.com> wrote:>
> 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
>
> <div id=''forklift_div''>
> <label for=''incident_forklift''>Was There a forklift
involved?</label>
> <%= check_box ''incident'',
''forklift''%>
> <% if @incident.forklift %>
> <div id=''fork_detail_div'' ><%= text_area
''incident'',''forklift_detail'',
> :rows => 4, :cols =>40 -%>
> <% else %>
> <div id=''fork_detail_div''
style=''display:none''><% end -%></div>
> <%= observe_field( ''incident_forklift'',
> :url => { :action => ''show_forklift_detail''},
> :with => "''incident_forklift=''+value",
> :loading =>
"Element.toggle(''loader'')",
> :complete =>
"Element.toggle(''loader'')" )
> %>
> </div>
>
> and the RJS part is
>
> page.replace_html ''fork_detail_div'', "<label
> for=''incident_forklift_detail''>Describe The Forklifts
> Involvement</label><br/>" +
> 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:in
`__send__''
> c:/ruby/lib/ruby/1.8/webrick/httprequest.rb:325:in
`_read_data''
> c:/ruby/lib/ruby/1.8/webrick/httprequest.rb:324:in
`timeout''
> c:/ruby/lib/ruby/1.8/timeout.rb:55:in `timeout''
> c:/ruby/lib/ruby/1.8/webrick/httprequest.rb:324:in
`_read_data''
> c:/ruby/lib/ruby/1.8/webrick/httprequest.rb:335:in
`read_line''
> c:/ruby/lib/ruby/1.8/webrick/httprequest.rb:225:in
> `read_request_line''
> c:/ruby/lib/ruby/1.8/webrick/httprequest.rb:86:in `parse''
> c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:56:in `run''
> c:/ruby/lib/ruby/1.8/webrick/server.rb:155:in
`start_thread''
> c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start''
> c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in
`start_thread''
> c:/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start''
> c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each''
> c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start''
> c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start''
> c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start''
>
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:in
> `require__''
> 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:in
> `require''
> 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:in
> `require''
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060320/c7b9054e/attachment.html