[support] iframe resizing

Yani akayani at aapt.net.au
Sat Jan 21 05:08:23 UTC 2012


Drupal 7, code added to scripts.js which is loaded. (All good there)

Using this code 

https://github.com/house9/jquery-iframe-auto-height/blob/master/release/jque
ry.iframe-auto-height.js

jquery.iframe-auto-height.js

 

Currently in development version and placed at the end of the scripts.js
file.

Called using this...

 

      $("'.autoheight':not(.z-processed)", context);

      {

      $('iframe.autoheight').iframeAutoHeight();

      $('.autoheight', context).addClass('z-processed');

      }

 

But tried...

 

      $("'.autoheight':not(.z-processed)", context);

      {

      $('iframe.autoheight').load(iframeAutoHeight());

      $('.autoheight', context).addClass('z-processed');

      }

 

And 

 

      $("'.autoheight':not(.z-processed)", context);

      {

      $('iframe.autoheight', context).iframeAutoHeight();

      $('.autoheight', context).addClass('z-processed');

      }

 

The iframe is coming from the same domain.

 

Getting no results beyond the 'addClass' and I find it hard to believe that
jquery.iframe-auto-height.js can be that buggy at version 1.6.

 

Anyone have any clues for me on this?

 

Yani

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20120121/6c3b332e/attachment.html 


More information about the support mailing list