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''}) %> <p><%= radio_button_tag "new_or_update", "demo", true %></p> <p><%= radio_button_tag "new_or_update", "new", false</p> <p><%= radio_button_tag "new_or_update", "update", false</p> <div><%= hidden_field_tag("creator", ''patient'') %></div> <div> <%= submit_tag("Start", :class => ''submit-btn'') %></div> <%= 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 :( On Mar 11, 7:27 am, "Bill Walton" <bill.wal...-xwVYE8SWAR3R7s880joybQ@public.gmane.org> wrote:> 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''}) %> > <p><%= radio_button_tag "new_or_update", "demo", true %></p> > <p><%= radio_button_tag "new_or_update", "new", false</p> > <p><%= radio_button_tag "new_or_update", "update", false</p> > <div><%= hidden_field_tag("creator", ''patient'') %></div> > <div> <%= submit_tag("Start", :class => ''submit-btn'') %></div> > <%= 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--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---