using a java script toggler inside jquery-iframe-auto-height
Closed this issue · 1 comments
madisonstrand commented
I am trying to use javascript toggle elements inside this jquery-iframe-auto-height code. The code works fine with standard html page code but not with the javascript toggler.
The jscript code that creates the toggler is:
<script type="text/javascript"> $(document).ready(function(){ $('div.toggler-5').toggleElements( { fxAnimation:'show', fxSpeed:'slow', className:'toggler2' } ); }); function doOnClick() { alert('callback: onClick'); } function doOnHide() { alert('callback: onHide'); } function doOnShow() { alert('callback: onShow'); } </script>Where the toggle element is called further into the html page Example
And any number of these might be called making the page height different with any click of the mouse.
I hope this makes sense.
house9 commented
the auto height only fires when the iframe loads (or reloads).
sounds like you need a way to fire the resize function when a toggle event occurs inside iframe. Currently this is not supported,