I have single.php rendered within Fancybox. For the purpose of resizing an image within single.php I am obtaining the image height in javascript using:
var contentheight = jQuery('.postimage').height();
The first load of single.php within Fancybox successfully populates the "contentheight" variable and I am able to resize the image as per my needs. However, when I use Fancybox's left/right navigation buttons to navigate to next post, the "contentheight" variable never gets populated. Any ideas on what could be causing this erratic behavior?
load eventor the jQuery.ready() method. I am also assuming that either triggers correctly on the first load, but not when navigating to the next post's content. I am sure it's a trivial solution, but your question is (almost) impossible to answer as long as the behavior can not be observed anywhere and you're sharing just one line of code. – Johannes Pille Nov 15 '11 at 15:32