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/jquery.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