There's not much you can "convert" to jQuery. It's all javascript anyway:
function getContentFromIframe(iFrameName) { var content = $('body', $('#'+iFrameName)[0].contentDocument).html (); $('#myiFrame-content').append(content); } - ricardo On Mar 3, 2:56 pm, "Rick Faircloth" <r...@whitestonemedia.com> wrote: > I've made various attempts at translating this into jQuery without success. > > I guess I'm just not sufficient enough in regular JS to make it work. > > It's working, but I'd like it to be written as much as possible in jQuery > syntax. > > Would some please translatethe first three lines of this into jQuery for me? > > Thanks, > > Rick > > function getContentFromIframe(iFrameName) { > > var myIFrame = document.getElementById(iFrameName); > > var content = myIFrame.contentWindow.document.body(innerHTML); > > $('#myiFrame-content').append(content); > > ---------------------------------------------------------------------------- > ---------------------------------------------- > > "My reading of history convinces me that most bad government results from > too much government." > > - Thomas Jefferson