Link to home
Start Free TrialLog in
Avatar of Kasonde Neddy
Kasonde Neddy

asked on

Artwork Profile Page: images disappear from list after image preview dialog is closed

Hello experts,

Need some help on a project we are working... our front end js has some issues.  On our art gallery, on the artwork view page, when we click an artwork, it opens up a fancy box, but when we close the fancy box view of the image, the image thumbnail disappears from the display.  You can check at: http://www.einsteinsolutions.xyz/chaminuka/public/artwork/unknown-9/profile

Trying figure out why that is happening?

Rgds
ASKER CERTIFIED SOLUTION
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Kasonde Neddy
Kasonde Neddy

ASKER

Hi Chris,

Thanks so much for this...we added the href url and it is working fine :-) thanks for your help and noticing that.  I guess we need to generate the thumbnail dynamically differently in our code but can look at that in another question.

Rgds
Hi Chris,

Thanks so much for this...we added the href url and it is working fine :-) thanks for your help
No worries :)

It makes sense to generate a thumbnail. Fancybox will load up your main image when you click on it. If you use the main image as the thumbnail, it's likely to slow your page down a lot - you're basically downloading a full size image just to show a thumbnail - Imagine a page with 100 images - potentially making your page 100mb in size !!!! If you use thumbnails, each with a size of 10kb for example, your page would come in at 1mb - a significant difference :)
Chris Stanyon,

You are so right, and makes sense why we have slow load.  Now how to do this in laravel or jquery....is what I am trying to figure out.  Learning so much through you experts!