All good points Rob!
--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
--
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-scriptacul...@googlegr
On Sep 1, 6:54 pm, Richard Quadling wrote:
> On 31 August 2010 20:16, kstubs wrote:
>
>
>
> > I notice that if I intend to add class to an element that I must use
> > className and not class for my object. But what if I intend to name
> > my element? What do you use then? For example:
>
> >
Also you cannot use the class keyword because it's reserved in javascript,
you'll have to use className or 'class' between quotes in the objectliteral.
There is a known bug in IE8 with creating elements with for example the
Element constructor. In this case adding the classname with
Element.addCla
On 31 August 2010 20:16, kstubs wrote:
> I notice that if I intend to add class to an element that I must use
> className and not class for my object. But what if I intend to name
> my element? What do you use then? For example:
>
> { className : "foo", innerHTML : "bar" }
>
> On a newly define
On 31 August 2010 19:20, kstubs wrote:
> Thanks Richard for your answer on this! Question regarding this:
>
>> Object.extend(..., options || {}) // Extend the object created about
>
> Is it necessary to || {} (empty object) so as to not break the
> Object.extend in the event that options is null?
I notice that if I intend to add class to an element that I must use
className and not class for my object. But what if I intend to name
my element? What do you use then? For example:
{ className : "foo", innerHTML : "bar" }
On a newly defined TD yields:
bar
But if the object is:
{ name="some
Thanks Richard for your answer on this! Question regarding this:
> Object.extend(..., options || {}) // Extend the object created about
Is it necessary to || {} (empty object) so as to not break the
Object.extend in the event that options is null?
Karl..
On Aug 31, 10:19 am, Richard Quadling