Monthly Archives: December 2010

Preload Next Image in Thickbox

Thickbox is a great image viewer plugin for jQuery. This post is to show how to preload the next image in Thickbox. My example is for wordpress, my version is . 1. Open /wp-includes/js/thickbox/thickbox.js 2. Around line 106, replace the following lines: imgPreloader = new Image(); imgPreloader.onload = function(){}; imgPreloader.onload = null; with: imgPreloader =… Read More »

Fix NextGen Gallery IPTC Encoding Error in Chinese

NextGen Gallery is a great gallery plugin for wordpress. I am using it for my blog. I found a problem that if the IPTC information is in Chinese, it cannot import properly import as meta data. After searching and searching, finally I fixed the issue by modifying the /wp-content/plugins/nextgen-gallery/lib/meta.php file in get_IPTC function: Original code:… Read More »

Solve LoadPostData Not Firing Problem

When you are developing a server side control and want to handle some postback data. You can implement the IPostBackDataHandler interface. One issue I encountered is that the LoadPostData() method does not fire when the page posting back. Even if some values of textboxes are changed. To solve this issue, you need to call the… Read More »