lengen1971 — 2014-06-30T09:41:20-04:00 — #1
I try to start a site with a closed Fx.Slide(). What I have:
<a href="#" onClick="$$('.cont_inside').slide('toggle'); return false;">navi 1</a>
The slide starts closed but don´t comes up on click. Without the '.hide()' it works normal. Only want to
start the slide in closed condition.
Thanx for help
wolfshade — 2014-06-30T09:53:52-04:00 — #2
In your code, you have two '$' in the onClick. Is that copied/pasted from your actual code? If so, take out one of the '$'.
lengen1971 — 2014-06-30T09:59:15-04:00 — #3
thanx for your answer. I don´t know what you exactly mean. $$ returns a collection and I take the first  of them. Without it comes to
TypeError: $(...) is null
I just want to know how to hide an element on startup. The first toggle should be the reveal of the element.. not the dissolve.
lengen1971 — 2014-07-12T10:40:04-04:00 — #4
... the solution is:
pullo — 2014-07-13T00:54:02-04:00 — #5
Sorry if I missed something, but isn't this identical to post one.
In the Prototype library, the double dollar selector takes an arbitrary number of CSS selectors (strings) and returns a document-order array of extended DOM elements that match any of them.
I'm guessing that's what the OP is using.
lengen1971 — 2014-07-13T08:11:30-04:00 — #6
Nope. There are still two dollars but 'slide ('hide')' instead of hide ().
pullo — 2014-07-13T14:02:12-04:00 — #7
Ah. Missed that. Cheers