I am having problem with displaying image, can any one please suggest how to solve this? It took lot of hours already
<a href='calling controller action here for original image' rel="album1"><img src='calling controller action here for thumb'>
I am calling the above in a for loop and displaying those images in the colorbox with below code.
$colorbox ->addInstance('.colorbox', array('maxHeight'=>'80%', 'maxWidth'=>'90%')) ->addInstance('.colorbox1', array('iframe'=>true, 'width'=>'80%', 'height'=>'80%')) ->addInstance('a[rel="album1"]');
Thumbs are displaying perfectly because they are in <img> tag. but when I click on thumb image, <a href> is getting called to display original image using controller action and the data is displaying as binary data…
I understand we need only <img> tag to display image. How can I overcome to display href link as image?
any help will be much appreciated.
Thanks in Advance