Archive for September, 2006

Scriptaculous effects don’t work unless your target _id_ has a child

Thursday, September 14th, 2006

If you try to do:
new Effect.SlideDown('mydiv')
on
PLAIN TEXT
HTML:

<div id="mydiv">

  foo

</div>

Scriptaculous will look at you with a blank stare. In order to work, the div seems to need to have a child element other than a text element. This will work, for instance:
PLAIN TEXT
HTML:

<div id="mydiv">

  <p>foo</p>

</div>

Go figure.

programming, ruby on rails | No comments

You are currently browsing the Anodyne weblog archives for September, 2006.

Recently on Flickr

    mull - 21.jpgmull - 20.jpgmull - 19.jpgmull - 18.jpg

Recently Listened

Meta

The Carousell