what im trying to do is create a block thats say 200px in hight, maybe holding a views list of something. But if the views doesnt fit in to the block thered be a litle expand button, which the user would click to expand the block from 200px to 500 or something, and this would be closable so the block would go back to 200px. And then finally a second button that says show all which would take to a separate page.

So basically, I want to create a block thats 200 hight with 2 links one that expands the block to 500 and another which links to another page.

Thanks

Comments

rsvirani’s picture

Yes. You must use jQuery to do this effectively. Let the block load in its bigger 500px version, use jQuery to resize the box to 200px, and then append a link inside that would toggle the expansion of the box (fix the height with jQuery).