Skip to content


Using Script.aculo.us to Toggle a DIV II

This is an up date to Using Script.aculo.us to Toggle a DIV with the added bonus of persisting the state of the Toggled DIV(s). This is not as an elegant solution because it doesn't to use the Effect.Toggle Function but it does allow you to use any pair of Combination Effects.

First a shout out to Cookies in JavaScript and Unobtrusive & Persistent Script.aculo.us Effects for the JavaScript Cookies code.

Due to the need to have a window.onload function in the script I cannot demo it in Wordpress but I can demo it here.

View Source Code

Posted in AJAX.

One Response

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Fluffy said

    Wow; I just stumbled onto this via Pixel Groovy, and it's a solution I've been racking my brain to try to figure out for the last week. I'm really looking forward to putting this to use, thanks for the posts!

Some HTML is OK

(required)

(required, but never shared)

or, reply to this post via trackback.