We have a colourbox opening on an <a>
tag loading a reasonably large chunk of stuff into it. It's working okay in major browsers, but when you close the colourbox using IE7, you get a script timeout warning message.
I've tried hooking into the onCleanup
and other methods to see if that can help, but it seems that IE has trouble unloading and closing the window.
Has anyone experienced this or had similar issues? A workaround might be loading all th开发者_运维技巧e content first and displaying inline, but I'd rather just fix it.
author here. I haven't seen any other reports for this specific problem. It could be that you are generating JS errors which would be interfering with further JS execution. Maybe it's IE7 specific, or maybe IE7 is just choking on the error while other browser's handle it more gracefully. My suggestion would be to post a link demonstrating the problem as it is probably something that is specific to your site.
Put a var definition just before the container call in the js file it will be like
var container=$(this);
精彩评论