Nuffnang and Internet Explorer

Update: It turned out to be a prob­lem with the Light­box plu­gin I was using. I’ve replaced it with anoth­er plu­gin that provides sim­il­ar func­tion­al­ity, and the error has now gone away. Les­son learnt: hav­ing many scripts on the same page can be a recipe for dis­aster. Thanks Nuffn­ang for help­ing me work through this issue.

I recently added a Nuffn­ang ad to the side­bar — I hope none of you mind too much!

Any­way, all was going well until Inter­net Explorer threw a span­ner into the works (well, well, which browser always throws a span­ner into the works?).

It appears that on Inter­net Explorer 7 and earli­er (using my par­tic­u­lar Word­Press tem­plate at least), the addi­tion of the Nuffn­ang ad code can cause the page to fail to load with an Oper­a­tion abor­ted error:

opabort

This error is par­tic­u­larly trouble­some: after the hope­lessly unin­form­at­ive dia­log box is dis­missed, the page dis­ap­pears and gets replaced by a nav­ig­a­tion error page. (Thank­fully, this hideous beha­viour was changed in IE8, which might explain why I didn’t pick it up earli­er as that is my installed ver­sion. But it still begs the ques­tion, why do people insist on using Inter­net Explorer?)

I’ve let Nuffn­ang know about the poten­tial prob­lem, and with any luck, it will be resolved soon.

In the mean­time, I’ve made some changes to the ad code:




What this does is that it first checks wheth­er the browser is Inter­net Explorer. If it is not, the Nuffn­ang script can be called upon dir­ectly. If it is Inter­net Explorer, an iframe dis­play­ing /nuffnang.html is added to the doc­u­ment. /nuffnang.html just con­tains a copy of the ad code as provided by Nuffn­ang placed into an oth­er­wise blank HTML page.

Why? Isol­at­ing the Nuffn­ang ad code in a blank page by itself seems to avoid the error con­di­tions as described by KB927917. But even if an error were to devel­op, the error would be con­fined to the iframe and the rest of the page can still be dis­played.

If you’re hav­ing sim­il­ar dif­fi­culties, give the above a go and see wheth­er it works for you.

Tags: ,

1 comment

  1. Marlon’s avatar

    Inter­net Explorer 8 is really good. This browser is very very stable and i have been using it for quite a while without blue screens or crashes.

Comments are now closed.