Create your content inside a iframe, and sleep like a baby.
<script src="jquery.innerframe.js" type="text/javascript"></script>
Get your blessed element and insert any content on it. Your content will be wrapped inside a iframe.
//freaking easy!!!!
$("#yourdiv").innerframe("<b>any content<\/b>" [, options])
And you can customize your innerframe \o/
var options =
{
width : "100px"
,height : "100px"
,style : {}
,scrolling : "no"
,frameBorder: 0
,name : ""
,seamless : "seamless"
,srcdoc : ""
}
Never get caught with your pants down again with external contents. Within iframe these dirty codes can not destroy your beautiful work, ever.
Yes we are watching you IE!
- More Tests!
- More IE.
To run the test suite just open the test/test.html
file at your browser
This library was a crazy dream build by Bruno Agutoli; and Tcha-Tcho;
(The MIT License)
Copyright (c) 2012 Bruno Agutoli <[email protected]> Copyright (c) 2012 Tcha-Tcho <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.