...
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" <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---