Hi! I''m new here and i''m not sure if it''s the place to ask, but i''ll do it anyway. I want to know if it''s possible that my AJAX code could be broken for IE if it works in Firefox... I was developing on firefox for a while and everything was fine. I decided to test on IE and no requests worked... What ca cause this? I can show a sample of my code if needed. Thanks in advance all, Blaise Bernier
> I''m new here and i''m not sure if it''s the place to ask, but i''ll do it > anyway. I want to know if it''s possible that my AJAX code could be > broken for IE if it works in Firefox... I was developing on firefoxfor> a while and everything was fine. I decided to test on IE and no > requests worked...Yes, that can happen because IE doesn''t handle the requests the same way.> What ca cause this? I can show a sample of my code if needed.There can be many reasons. I had one time where simply switching from GET to POST fixed it for IE. I guess the GET request was too long for it to handle. Most times it''s simply a bug in my javascript code because I''m trying to do something IE doesn''t know how to do. You might try pasting the code so we can maybe spot the problem. Greg
Finally I managed to test my AJAX response and IE get the data, but is unable to show it. I''m using new Insertion.Bottom to populate a <select> field. I''ve found somewhere on the internet that IE6 may have some problems with that method used with a table (<tr> etc.) but nothing is said about the <select> fields. Would there be a workaround ar an hack to make it work?? thanks a lot in advance, Blaise Bernier
Ah, adding elements to selects. I remember having issues with that once upon a time, the best way I''ve found is to do: select.options[select.options.length] = new Option(text, value, false, false); One of those ''false'' arguments reflects whether it should be selected, I can''t recall what the other is. You can find some documentation on the Option object on google I''m sure. Greg> -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org[mailto:rails-spinoffs-> bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Blaise Bernier > Sent: Monday, March 20, 2006 4:17 PM > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: RE: [Rails-spinoffs] About prototype.js and IE > > Finally I managed to test my AJAX response and IE get the data, but is > unable to show it. I''m using > > new Insertion.Bottom > > to populate a <select> field. I''ve found somewhere on the internetthat> IE6 may have some problems with that method used with a table (<tr> > etc.) but nothing is said about the <select> fields. Would there be a > workaround ar an hack to make it work?? > > thanks a lot in advance, > > Blaise Bernier > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs