I have a few thoughts for you. 1. BlindUp/BlindDown accept the options scaleFrom and scaleTo, which are floats from 0 to 100, representing height as a percentage. You could use that.
2. The trouble is, you won't know how big your second div is going to be until you display it. If you're going to do that, you may wish to consider whether the effect you described is the only acceptable solution. It might be easier to BlindDown the first, and BlindUp the second, running the effects in parallel. It can be a cool effect. Add CSS to make them overlap, and you get a different looking (but also neat) effect. I guess what I'm saying is before you go through any extra hassle, make sure you haven't excluded other ways of getting to the same end. 2.a. Perhaps you could make good use of Effect.toggle(). 3. If BlindDown/Up doesn't work quite the way you want, maybe Effect.Morph will provide what you need. TAG On Apr 25, 2007, at 8:19 PM, indexasp wrote: > > Longer title: > Technique to blindUp or blindDown from an already open (and random > height) container to another height (and contents) container of the > same name... > > Basically, I've got a few links that when clicked do the following: > > 1. grab an xml file, parse through it, building an array of products > (thumbnails, links, descriptions) > 2. build a table > 3. innerHTML a pre-existing div > 4. blinddown to reveal the div > > If the div is already toggled open and populated with products when > another of the links is clicked, I do the following: > > a. delete existing children of the div > b. then do steps 1-3 above, effectively insta-switching one set of > products for another. > > What I NEED to do: > > Rather than insta-switching the innerHTML of the div, I need to > blindUp or blindDown from the div's current height to the div's new > height, then make the switch. > > Make sense? > > I've already gone about this a couple ways, but my brain is foggy and > I could use an idea or a pointing finger for direction at this > juncture.. > > Thanks! > indexasp > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
