have you trie using Builder to create and register your element?

also, try setting the checked attribute to 'checked' instead of 'true'


 
-----Original Message-----
Date: Wednesday, March 04, 2009 4:38:06 am
To: prototype-scriptaculous@googlegroups.com
From: "Richard Quadling" <rquadl...@googlemail.com>
Subject: [Proto-Scripty] Re: Creating Checked Radio buttons, not working  in IE


2009/3/4 Alex Mcauley <webmas...@thecarmarketplace.com>:
>
> Yes walter is correct... As far as i know you cannot insert an element into
> another element if it does not exist in the DOM (as the element is still an
> object that resides in memory at the time) .. though i could be wrong
>
>
>
> ----- Original Message -----
> From: "Walter Lee Davis" <wa...@wdstudio.com>
> To: <prototype-scriptaculous@googlegroups.com>
> Sent: Wednesday, March 04, 2009 3:24 AM
> Subject: [Proto-Scripty] Re: Creating Checked Radio buttons, not working in
> IE
>
>
>>
>> Try inserting it, then checking it after it's in the DOM. Also, try
>> setting input.checked = true rather than adding that as a part of the
>> initial new Element deal.
>>
>> if ( i == 1 ) {
>> var input = new Element(
>> 'input',{
>>   'type': 'radio',
>>   'value': i,
>>   'name': 'test'
>> }
>> );
>> li.insert(input);
>> input.checked = true;
>> }else{
>> var input = new Element(
>> 'input',{
>>   'type': 'radio',
>>   'val


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to