Hi,
I have some thumbnails, which when clicked I would like to display the full-size version of the image in another container.
To give some perspective, the thumbnails are all 70x70 and are around 4KB in size. The full size versions are around 100 to 300KB.
My first attempt at this was to simply change the src attribute of the <img> in the container on the thumbnail mouseover. This works, but on the first mouseover event for each thumbnail I get a blank image everytime (as the browser can't download the image fast enough).
So, having given up with Javascript, I am hoping I can achieve this using an Ajax call to a PHP file.
Is it possible to return binary data? Or am I going about this the wrong way?
I have some thumbnails, which when clicked I would like to display the full-size version of the image in another container.
To give some perspective, the thumbnails are all 70x70 and are around 4KB in size. The full size versions are around 100 to 300KB.
My first attempt at this was to simply change the src attribute of the <img> in the container on the thumbnail mouseover. This works, but on the first mouseover event for each thumbnail I get a blank image everytime (as the browser can't download the image fast enough).
So, having given up with Javascript, I am hoping I can achieve this using an Ajax call to a PHP file.
Is it possible to return binary data? Or am I going about this the wrong way?