Perhaps not, considering jQuery.ready() isn't meant to be triggered when an
underlying iframe added on-the-fly after the page completed is loaded.
You may be interested in investigating iframe's "load" event instead.

Michel Belleville


2009/11/12 Jack Bates <jack.ba...@gmail.com>

> I want to register a function to run when an iframe finishes loading,
> or immediately if it's already loaded
>
> To achieve this, I tried,
>
> $(function ()
>  {
>    var iframe = $('<iframe src="iframe.php"/>').appendTo('body')[0];
>    $(function ()
>      {
>        $('<div>READY!</div>').appendTo('body');
>      }, iframe.contentDocument);
>  });
>
> Unfortunately the function always runs immediately, whether the iframe
> is loaded or not : (
>
> e.g. 
> http://cgi.sfu.ca/~jdbates/tmp/jquery/200911110/<http://cgi.sfu.ca/%7Ejdbates/tmp/jquery/200911110/>
>
> Is this a bug in jQuery? or a feature request?
>
> May I open an issue?
>

Reply via email to