December 29th, 2006

Using Script.aculo.us to Toggle a DIV II

AJAX, by jay.

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

Back Top

Using Prototypes Ajax.InPlaceEditor To Edit Live Data phpNapster: An Unofficial Napster Search API

Responses to “Using Script.aculo.us to Toggle a DIV II”

  1. 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!