Skip navigation.

Shwetank Dixit

Now with 50% more cool!

How the IFrame SSI script II blocks Opera and how to fix it

, , , ,

A lot of websites seem to be using the IFrame SSI script II available at Dynamic Drive (No, I wont be linking to the page!). This has been a considerable source of headache for our site compatiblity team as its seems to pop up on sites all around the world and blocks Opera.

Yes, it blocks Opera. For no reason whatsoever.

Around line 34 or so, it has this line of code

if (currentfr && !window.opera){

So basically the 'if' loop is entered if 'currentfr' has a value and if the browser is not Opera!. I have no idea why the script does it. Maybe when the script was made (in the seventh century or so p: ) Opera had some behaviour different from other browsers, but I can't be sure about this.

Whatever the reason, this code is bad for Opera.

This is how to fix it...

Simply remove the
&& !window.opera
part from that line so that it becomes
if (currentfr){

and it should work across all browsers, including Opera!

There are other such scripts which cause problems in Opera simply because of bad coding, but this script is one of the biggest culprits in this regard. So remember, if you have to use the IFrame SSI script II script, make sure to remove the part I mentioned before making your site live.

The real need for volunteers to help the blindHow to have different profiles of different builds of Opera on the mac

Write a comment

You must be logged in to write a comment. If you're not a registered member, please sign up.