Sunday, August 15, 2010

Modalizer show hidden DIV in joomla

If you need to show a hidden div in joomla using modalizer, i have the hack for you!.

Unfortunatly the mootools squeezebox script that comes with modalizer is different than normal joomla 1.5 squeezebox. Yep thats right the developers skipped the "adopt" feature that the normal squeezebox has, so I added it!

Here is an example of how to set it up.
First download my hacked version of nn_squeezebox.js, extract and copy it to "\plugins\system\modalizer\modals\squeezebox"

<a   class="nn_squeezebox" rel="{handler: 'adopt', adopt: 'test',size:{x: 650, y: 500}}" >test</a>

<div id="test" style="display:none">YEA!!! it works</div>


DOWNLOAD fixed nn_squeezebox.js

NOTE: For some reason all the ID attributes get stripped from the code in the hidden div when displayed in the popup, so make them classes!


Stumble Upon CodePyro

0 comments:

Post a Comment