Disabling javascript popup warnings

I have been using curvycorners to display rounded boxes in websites and blogs but recently I have been getting lots of popup warnings. However, I have also found out that disabling javascript popup warnings is easy.
30 Dec, 2009

I have been using CurvyCorners [Note: No longer available from 2016] to display rounded boxes on a number of my websites and blogs for some time now with no problems. Recently, I have installed WordPress 2.9 and Woothemes (specifically the Optimize theme) and have started getting lots of popup warnings when running the pages that use CurvyCorners in IE8. The errors were along the lines of ‘Object ID unknown. Wait until CurvyCorners has been loaded’. As the code worked perfectly well on my other sites, I assumed that something in my Woo Theme was tripping it up, and after a little research found that I could actually disable these alerts just by adding…

function alert() {};

…before my curvycorners.js file was called.

It really does work a treat, although I would have preferred to get to the bottom of the real problem.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

You may also like…

How do canonical links work in wordpress?

How do canonical links work in wordpress?

Canonical links are used to indicate the preferred URL of a webpage that has multiple versions or duplicates of the same content. This article explains canonical links in depth.

Share This
Martin Jarvis

Martin Jarvis

I typically reply within an hour

We're here Monday - Friday during UK working hours. Drop us an email and we'll get back to you.

Martin Jarvis
Hi. It's Martin here. How can I help you?
Start Chat with:
chat