Did what I not wanted

Did a little piece of coding at back-end to find width and height of thumbnails and added to xml feed. It was rather easy but this is what i never wanted.

PHP code to find photo dimension

XML Feed attributes

What I was trying to achieve is to find width and height of photos using jQuery and creating <img> attributes at run-time, unfortunately execution of loop was too fast that image tag was getting populated before jQuery can even cache thumbnails and was resulting in width=NaN 😀

Anyways this approach is working. It was working even without creating placeholder earlier, just only some times my right navigation thumbnail arrow was disappearing 😛 .

Sorry for those, who find it hard to digest… its little techie this time 😀

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s