function getContentFromIframe(iFrameName) { var myIFrame = $("#"+iFrameName);
var content = myIFrame.contents().find("body").html(); $('#myiFrame-content').append(content); On Mar 3, 9:56 am, "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