문제

I'm getting some strange messages from Internet Explorer 8 when loading my latest web site project:

No object with ID #body-news-content .post exist yet. Call curbeyCorners(setting, obj) when it is created.

The site is running on WordPress, using curveyCorners for roundcorners in Internet Explorer. I should probably mention that the site itself renders correctly, but for some reason Internet Explorer insists on giving me this message.

Here is a screengrab of the image:

(Meta content: I can't post more than one link so if you would like to see the temp site in action I'll reply with a URL. Thanks you for any and all help.)

도움이 되었습니까?

해결책 2

I finally managed to find a solution myself. On the curveyCorners website (the instructions page), they reference a call to the Alert() function which is used to inform users when objects or elements using curveyCorners have not loaded yet. Why exactly this only happens in Internet Explorer I'm still unsure about.

Anyway, here is the solution! Add this bit of code to the header tag of your site and the Alert() warnings go away.

<script type="text/javascript">
    var curvyCornersVerbose = false;
</script>

I hope this helps others having the same problem.

다른 팁

By reading the error message, it seems that the curveyCorners script you are using is used to 'round' the corners of elements with class 'post' in the element of id 'body-news-content'. However it seems that at the time the curveyCorners script is launched, there is no such elements.

You should call the script later, before for example, or in $(document).ready() if you are using jQuery.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top