On Jul 5, 2006, at 11:42 AM, Jason Bunting wrote:
> On Jul 5, 2006, Bob Ippolito wrote: > > > > > > On Jul 5, 2006, at 11:19 AM, Jason Bunting wrote: > > > > > > > var textbox = INPUT({"type":"text", > > > > "id":"MyTextboxId","autocomplete":"off", "readonly":"readonly"}); > > > > > > > > In FF, I get exactly what I expect, but in IE 6, the textbox is > not > > > > readonly. Anyone happen to know why? If I call toHTML(textbox) > > > > immediately afterwards, the results look like the following: > > > > > > Don't have Windows up and running right now, but I'd try > > > "readonly":"true" > > > > Okay, at least I found a workaround for now – if I add > textbox.readOnly = true; on the line following the declaration of > textbox, it works just fine. Help me live! Try putting this in your script somewhere and see if that helps. It should have the same effect globally. if (!MochiKit.DOM.attributeArray.compliant) { MochiKit.DOM.attributeArray.renames.readonly = "readOnly"; } -bob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit -~----------~----~----~----~------~----~------~--~---