For a photo gallery I am using jQuery Fancybox, but something strange is happening. When you land on that particular page you will see all photos from the gallery. On the right hand side is a menu with different categories. Like I said when you land on the page all photos will show and Fancybox is working perfectly, but when you click on one of the categories (e.a. Restaurant, Eten) Fancybox isn’t working any longer, instead the photo opens in a new page. You can see what I mean here.
You are loading new content into that section that fancybox doesn’t know about so you will need to re-initialise the fancybox every time you load new content I think
Hi Paul. Thank you for the response and the link to the article. I tried what you suggested but that isn’t working. I have been reading articles for the last few hours but most of them are referring to the usual AJAX calls ajax({ }) where I use .load method. I found one article though that came quite near to my situation as you can see here. but that didn’t do the trick either. What would you suggest?
You seemed to have changed your gallery page so I can’t really test any more as you don’t have any content being added dynamically. I’m sure the solution I posted would have been on the right track.
Have you abandoned the idea or just changed the page for now?
Hi Paul. I am very sorry for the inconvenience! I needed to show something to the client so I temporary took out the menu. I just put it back the way it was! For me there is no difference still/ What I notice though is that when I look at your page source I see the entire jquery.fancybox plugin while looking at my page source I just see the link to the plugin. Also when changing the content from the gallery in my page the css of the gallery is gone! Please have a look again!
Hi Paul sorry for my late response… That gallery was driving me crazy so I left it for a day and made a fresh start this morning. I started completely from scratch and now it’s working. I don’t see what I have done differently from the first approach. Thank you for all your input and help