IE 5.5 not sending params when it sends Ajax


#1

Greetings!

When a vistor enters my site, the first page submits via a
form_remote_tag that calls a method that uses responds_to to see if the
visitor has js enabled.

My problem is that IE5.5 is not sending anything but the controller and
action in the params hash. IE6, IE7, and FF all send what they’re
supposed to send. It’s right there, or not there, in the log.

IE5.5 entry:
Parameters: {“action”=>“check_js”, “controller”=>“create”}

IE6 entry:
Parameters: {“creator”=>“patient”, “commit”=>“Start”,
“action”=>“check_js”, “new_or_update”=>“new”, “controller”=>“create”}

FF entry:
Parameters: {“creator”=>“patient”, “commit”=>“Start”,
“action”=>“check_js”, “new_or_update”=>“new”, “controller”=>“create”}

I’m stumped, have Googled my a$$ off, and cannot figure out what might
be going on here or how to fix it. Any ideas or info would be greatly
appreciated!

The form_remote_tag looks like:

<%= form_remote_tag(:url => {:action => ‘check_js’}) %>

<%= radio_button_tag “new_or_update”, “demo”, true %>


<%= radio_button_tag “new_or_update”, “new”, false


<%= radio_button_tag “new_or_update”, “update”, false


<%= hidden_field_tag(“creator”, ‘patient’) %>
<%= submit_tag("Start", :class => 'submit-btn') %>
<%= end_form_tag %>

The method looks like:

def check_js
respond_to do |wants|
wants.html {redirect_to :action => ‘sorry’}
wants.js {
if params[:new_or_update] == ‘update’
render :update do |page|
page.redirect_to :action => ‘choose_emrec’
end
elsif params[:new_or_update] == ‘new’
render :update do |page|
page.redirect_to :controller => ‘actor’, :action =>
‘edit_patient’
end
else #if params[:new_or_update] == ‘demo’
render :update do |page|
page.redirect_to :action => ‘explain_demo’
end
end
}
end
end

Any ideas?

Thanks,
Bill


#2

form_remote_tag uses Prototype which isn’t “supported” in IE 5.5:

http://wiki.script.aculo.us/scriptaculous/show/SupportedBrowsers

If you want this to work, you’ll have to debug and patch up the Ajax
class yourself :frowning:


#3

Hi Eden,

eden li wrote:

form_remote_tag uses Prototype which isn’t “supported” in IE 5.5:

Thank you. That’s exactly what I needed to know. I really appreciate
your
response.

Best regards,
Bill