Created
July 31, 2009 12:48
-
-
Save Paxa/159210 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$$('.to_frame').each(function (el) { | |
var html = el.get('html'); | |
var myIFrame = new IFrame({ | |
src: '', | |
styles: { | |
width: el.getStyle('width'), | |
height: el.getStyle('height').toInt() + 3, | |
border: 0, | |
padding: 0 | |
} | |
}); | |
el.empty(); | |
myIFrame.inject(el, 'after'); //l.replaces(myIFrame); | |
myIFrame.contentWindow.document.open(); | |
myIFrame.contentWindow.document.write(html); | |
$(myIFrame.contentWindow.document.body).setStyles({margin: 0, padding: 0, border: 0}); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment