Skip to content
premasagar edited this page Sep 13, 2010 · 5 revisions

A new AOMI object is initialised with the following default options. To change these, supply an object with the options you wish to change – either to the $.iframe() constructor function, or to aomi.options().

{
    attr:{
        scrolling:'no',
        frameBorder:0,
        allowTransparency:true
    },
    src:'about:blank', // don't include src in the 'attr' object above
    doctype:5, // html5 doctype
    target:'_parent', // target window for links to open in, e.g '_self' to open in the iframe, or '_blank' to open in a new browser tab/window
    autoheight:true, // shrink the iframe element to the height of its document body
    autowidth:false, // don't shrink the iframe's width (see css.width below)
    resizeThrottle:250, // minimum delay between aomi.resize calls (milliseconds)
    css: {
        margin:0,
        padding:0,
        borderWidth:0,
        borderStyle:'none',
        backgroundColor:'transparent',
        width:'100%' // make iframe element stretch to fill its parent element's width
    },
    title:'' // the title property for the iframe document
}

Clone this wiki locally