View Full Version : Iframe SSI script II FireFox Compatibility

08-05-2007, 04:33 PM
1) Script Title: Iframe SSI script II

2) Script URL (on DD): http://dynamicdrive.com/dynamicindex17/iframessi2.htm

3) Describe problem: I'm using this script and it works great in IE. I noticed the note about FireFox. The frame expands but not for the full contents of the page. Just a tad gets cut off that results in the iframes scrollbars showing. Is it supose to do that in FireFox? Anyway to get rid of the scrollbars in FireFox?

08-05-2007, 04:55 PM
You can try increasing the red number in the below:

var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers

But, as this script was written well before current versions of FF and uses 'sniffing' to determine whether or not to apply that number, all bets are off without testing.

08-05-2007, 05:39 PM
Thank you... that seemed to do the trick.... well sort of. LOL

Changing the number helped but the scrollbars do show on the iframe while the iframe loads but after it loads in full the scrollbars vanish. I can live with that.

You can see what I mean here at my test location:

IE works good.

Thank you for your help! :)