Using SimpleModal (jQuery plugin) to display a popup iFrame without unnecessary scrollbars -
i'm using simplemodal:
http://www.ericmmartin.com/projects/simplemodal/
and displaying iframe, per example:
// display external page using iframe var src = "http://365.ericmmartin.com/"; $.modal('<iframe src="' + src + '" height="450" width="830" style="border:0">', { closehtml:"", containercss:{ backgroundcolor:"#fff", bordercolor:"#fff", height:450, padding:0, width:830 }, overlayclose:true });
and popup has two sets of scrollbars, 1 perhaps html element representing popup, , 1 iframe. try demo see: http://www.ericmmartin.com/projects/simplemodal/#examples
ideally i'd no scrollbars if content fits, otherwise single vertical scrollbar.
any ideas? thanks!
- alex
this work sample code content i.e "eric.martin.com", not sure if can control width other external content, can't :)
containercss:{ backgroundcolor:"#fff", bordercolor:"#fff", height:450, padding:0, width:830, maxwidth : 800 },
Comments
Post a Comment