Nicolás Sanguinetti
2007-Nov-28 15:07 UTC
Re: Form.disable(''form_id_goes_here''), works ok in Opera/FF/IE 6, but not IE 5.5
AFAIK, IE 5.5 is not officially supported by Prototype, but I couldn''t find the supported browsers in the website. (Actually, none of the "big" frameworks support 5.5 I think) Best, -Nicolas On Nov 28, 2007 7:54 AM, Vladimir Ghetau <vladimir-JO9vGbjvMkWBB+qDyBTWOgC/G2K4zDHf@public.gmane.org> wrote:> > Hi guys, > > I think there is a problem with the disable() function I''m trying to > figure out what''s wrong and if this is a bug or not. > > I''m testing my prototype powered app on different browsers and I > realised that IE 5.5 doesn''t disable all the form elements if I call > Form.disable(''my_form''). > > Anyone knows what''s the idea behind this? I remember reading that > disable is serializing the elements structure, is that possible to > cause my problem? > > Thanks, > > Vladimir Ghetau > http://www.Vladimirated.com/ > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Vladimir Ghetau
2007-Nov-28 18:20 UTC
Re: Form.disable(''form_id_goes_here''), works ok in Opera/FF/IE 6, but not IE 5.5
Then, pretty impressive is the fact that 99% of the functionality of my app works on 5.5 :D So, time for workarounds, I wasn''t able to find an official list of supported browsers. Thanks for the reply. Cheers! Vladimir Ghetau http://www.Vladimirated.com/ On Nov 28, 3:07 pm, "Nicolás Sanguinetti" <godf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> AFAIK, IE 5.5 is not officially supported by Prototype, but I couldn''t > find the supported browsers in the website. > (Actually, none of the "big" frameworks support 5.5 I think) > > Best, > -Nicolas > > On Nov 28, 2007 7:54 AM, Vladimir Ghetau <vladi...-JO9vGbjvMkWBB+qDyBTWOgC/G2K4zDHf@public.gmane.org> wrote: > > > > > Hi guys, > > > I think there is a problem with the disable() function I''m trying to > > figure out what''s wrong and if this is a bug or not. > > > I''m testing my prototype powered app on different browsers and I > > realised that IE 5.5 doesn''t disable all the form elements if I call > > Form.disable(''my_form''). > > > Anyone knows what''s the idea behind this? I remember reading that > > disable is serializing the elements structure, is that possible to > > cause my problem? > > > Thanks, > > > Vladimir Ghetau > >http://www.Vladimirated.com/--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Vladimir Ghetau
2007-Nov-28 22:08 UTC
Re: Form.disable(''form_id_goes_here''), works ok in Opera/FF/IE 6, but not IE 5.5
... actually, after watching inside the prototype code, If anyone is concerned about IE 5.5 here''s the solution: <code> /* @param boolean status Enable or disable @param formId the element ID of your form */ function enableIE(status, formId) { if (Prototype.Browser.IE) { var form = $(formId); var inputs = [''input'', ''textarea'', ''select'']; var temp_var; inputs.each(function(tag) { temp_var = form.getElementsByTagName(tag); $A(temp_var).each(function(elem) { elem.disabled = blocked; }); }); } else { if (status) { Form.enable(formId); } else { Form.disable(formId); } } // non IE browsers } </code> Now, I am only watching <input>, <textarea>, and selects, these are elements required in my DOM structure, but if there are others you want to disable (I haven''t browsed the DOM structure to see how many form element types are there though), just add more values to this line <code> var inputs = [''input'', ''textarea'', ''select'', ''your_form_tag_here'']; </code> All works OK now, and seems prototype supports IE5.5 pretty well for me. Cheers! Vladimir Ghetau http://www.Vladimirated.com/ On Nov 28, 3:07 pm, "Nicolás Sanguinetti" <godf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> AFAIK, IE 5.5 is not officially supported by Prototype, but I couldn''t > find the supported browsers in the website. > (Actually, none of the "big" frameworks support 5.5 I think) > > Best, > -Nicolas > > On Nov 28, 2007 7:54 AM, Vladimir Ghetau <vladi...-JO9vGbjvMkWBB+qDyBTWOgC/G2K4zDHf@public.gmane.org> wrote: >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---