2009/5/29 T.J. Crowder <t...@crowdersoftware.com> > > @Miguel: > > > ...because parameter position > > need be string > > No, it doesn't. When you use that style of insert, you're handing it > an object (in this case, via an object literal) where the name(s) of > the property on the object dictate where the content is put. "bottom" > is a property name, which you can either put in quotes or not. These > two object literals are identical: > > {bottom: 'blah blah blah'} > > {'bottom': 'blah blah blah'} > > The second one is also valid JSON (the first is not, although most > JSON parsers will let you get away with it.) > > Sometimes you need to use a string for the property name, if the name > you want to use is a reserved word like 'class' or 'var'. > > mmhh... that weird, I thought was read on the manual what option bottom need be a string, but not can found now
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---