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 in 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 which 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 wootheme 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


Submit a Comment

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

You may also like…

Using WP-POLLS for my WordPress Polls and Surveys

Using WP-POLLS for my WordPress Polls and Surveys

Back in 2010 we started using the WP-POLLS plugin to add polls and surveys to one of our WordPress sites. 9 years on, is this still the best solution? Here’s our 2019 view on using polls and survey plugins in WordPress.

Share This

Was it a useful article?

A lot of work goes into providing information like this. If you have found this article helpful, please could you consider sharing it with your network for us?