yairEO / photobox

A lightweight CSS3 image viewer that is pretty to look and and easy to use
GNU Affero General Public License v3.0
750 stars 281 forks source link

JQuery appending but not showing #126

Closed pankajiitkgp closed 7 years ago

pankajiitkgp commented 7 years ago

On using this jquery appending all the images link but on clicking gallery is not working. I don't know what to do. Please help

$("#g1, #g2").click(function(e) { e.preventDefault(); var e_id, i; e_id = $(this).attr("id"); console.log(e_id); for( i = 2; i < 5; i++){ $('#'+ e_id +'').append('html tag with a link and img source'); } });

yairEO commented 7 years ago

please provide a demo page or any page where I can see the problem happening

pankajiitkgp commented 7 years ago

Here is the Demo page: https://pankajiitkgp.github.io/gallery/

I want a gallery type of page, where I will have different card for different albums. On clicking one card it will show only the photos related to that album. On using the blow code, jquery appending all the images link but on clicking gallery is not working. I don't know what to do. Please help.

Regards,

Pankaj Sarkar Final Year Undergraduate Student Civil Engineering Department, Indian Institute of Technology, Kharagpur

Email ID: pankajsarkar@iitkgp.ac.in Contact No.: (+91) 9932668593

On Sun, Apr 16, 2017 at 9:38 PM, vsync notifications@github.com wrote:

please provide a demo page or any page where I can see the problem happening

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yairEO/photobox/issues/126#issuecomment-294359650, or mute the thread https://github.com/notifications/unsubscribe-auth/AHK8VdNZGbTyvMQPtgl0AoCxYoGsifU6ks5rwjz9gaJpZM4MFD_d .

pankajiitkgp commented 7 years ago

Dear Sir,

I have attached two screenshots of the page after inspecting element. The image with name "First Shot" is just after loading the page where it only showing the link of only one photo. Whereas the "Second shot" is after clicking one album, now in inspect element window, it showing all the link.

Hope you got my problem.

On Sun, Apr 16, 2017 at 9:57 PM, Pankaj Sarkar pankajmkd@gmail.com wrote:

Here is the Demo page: https://pankajiitkgp.github.io/gallery/

I want a gallery type of page, where I will have different card for different albums. On clicking one card it will show only the photos related to that album. On using the blow code, jquery appending all the images link but on clicking gallery is not working. I don't know what to do. Please help.

Regards,

Pankaj Sarkar Final Year Undergraduate Student Civil Engineering Department, Indian Institute of Technology, Kharagpur

Email ID: pankajsarkar@iitkgp.ac.in Contact No.: (+91) 9932668593

On Sun, Apr 16, 2017 at 9:38 PM, vsync notifications@github.com wrote:

please provide a demo page or any page where I can see the problem happening

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yairEO/photobox/issues/126#issuecomment-294359650, or mute the thread https://github.com/notifications/unsubscribe-auth/AHK8VdNZGbTyvMQPtgl0AoCxYoGsifU6ks5rwjz9gaJpZM4MFD_d .

yairEO commented 7 years ago

gallery is working fine on your demo page...

testing on Chrome Version 58.0.3029.110 (64-bit)