[Proto-Scripty] Re: new Element("label"), problem with 'for' attribute

2009-02-04 Thread Tobie Langel

You can also try:

{id: 'foo', htmlFor:'bar', className:'baz'}


On Feb 4, 10:46 pm, Walter Lee Davis  wrote:
> Hey, man, this is IE we're talking 'bout here... Of course it's  
> unnatural!
>
> Walter
>
> On Feb 4, 2009, at 4:31 PM, Diodeus wrote:
>
> > It does feel a little 'unnatural'
> > though. :)
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: new Element("label"), problem with 'for' attribute

2009-02-04 Thread Walter Lee Davis

Hey, man, this is IE we're talking 'bout here... Of course it's  
unnatural!

Walter

On Feb 4, 2009, at 4:31 PM, Diodeus wrote:

> It does feel a little 'unnatural'
> though. :)


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: new Element("label"), problem with 'for' attribute

2009-02-04 Thread Diodeus

Thanks, Walter, that worked. It does feel a little 'unnatural'
though. :)

On Feb 4, 4:21 pm, Walter Lee Davis  wrote:
> Did you try it with the names of the attributes quoted?
>
> {'id': 'foo', 'for':'bar', 'class':'baz'}
>
> Walter
>
> On Feb 4, 2009, at 4:13 PM, Diodeus wrote:
>
>
>
> > IE seems to barf when setting the "for" attribute of a label with the
> > element constructor:
>
> > $(element).insert(new Element("label", { id:'something', for:'check1',
> > className:'FBRadioLabelLeft' }))
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: new Element("label"), problem with 'for' attribute

2009-02-04 Thread Walter Lee Davis

Did you try it with the names of the attributes quoted?

{'id': 'foo', 'for':'bar', 'class':'baz'}

Walter

On Feb 4, 2009, at 4:13 PM, Diodeus wrote:

>
> IE seems to barf when setting the "for" attribute of a label with the
> element constructor:
>
> $(element).insert(new Element("label", { id:'something', for:'check1',
> className:'FBRadioLabelLeft' }))

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---