I just verified that frameReady() works perfectly with dynamically created iframes, even in IE.
On Apr 18, 1:47 pm, mdelmarter <[EMAIL PROTECTED]> wrote: > Hi Markus, > > Pretty much. Here is an example: > > function getIframe($id) > { > $length = top.frames.length; > > for (var i=0; i < $length; i++) { > if($.browser.msie) { > $iframe = window.top.frames(i); > } else { > $iframe = top.frames[i]; > } > > if($iframe.name == $id) { > return $iframe; > } > } > > } > > This allows me to call functions inside the iframe, focus and print > the iframe etc - things that Internet Explorer can have trouble doing > when the iframe was dynamically added to the DOM. > > Matthew > > On Apr 18, 8:10 pm, Markus Peter <[EMAIL PROTECTED]> wrote: > > > On 17.04.2007, at 23:36, mdelmarter wrote: > > > > With regard to working with dynamically generated iframes - yes I have > > > had issues in the past as well, but from memory it was related to the > > > way I was referencing them. From example I think I was getting issues > > > when trying to call functions in an iframe using the iframe ID - which > > > Internet Explorer did not like for iframes added to the DOM after page > > > load. I now reference by NAME instead and have had no problems. There > > > have been other challenges, but none of them major and all of them > > > solved so far. But that is a slightly different topic :) > > > An interesting topic, nevertheless. How did you reference them by > > name? Do you simply walk the frames from window.top by name then? > > > -- > > Markus Peter - [EMAIL PROTECTED] http://www.spin-ag.de/ > > SPiN AG, Bischof-von-Henle-Str. 2b, 93051 Regensburg, HRB 6295 > > Regensburg > > Aufsichtsratsvors.: Dr. Christian Kirnberger > > Vorstände: Fabian Rott, Paul Schmid