Sporadic IE hang on AJAX reponse handling


#1

Hi. I’m running a questionaire with 90 questions and it usually works
fine. Some times though, IE hangs as if it never gets a response.

As far as I can see in the log, the response gets committed fine from
Rails:

Processing ProfilesController#answer (for 212.242.187.48 at 2007-06-15
10:58:05) [POST]
Session ID: db915eb19a676d8459cb0bc9284c96a4
Parameters: {“reply”=>{“work_area_id”=>“17”, “question_id”=>“51”,
“current”=>“2”, “category_id”=>“3”, “base”=>“null”},
“action”=>“answer”, “controller”=>“profiles”}
Completed in 0.04024 (24 reqs/sec) | Rendering: 0.01693 (42%) | DB:
0.00423 (10%) | 200 OK [https://host.com/profiles/answer]

But nothing happens on the client side (on occasion only). Any tips on
troubleshooting?

The submit has some error handling which doesn’t get triggered:

<% form_remote_tag :url => form_action, :loading => “$(‘question-
text’).innerHTML=’<img src=”/images/ajax_fan.gif?1234"/>’", :failure
=> “alert(‘Error on submit’)”, :html => { :id => “profile_form” } do
%>

Thanks

Morten