Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Mar 2012
    Thanked 0 Times in 0 Posts

    Question Multiple JSON photo galleries on one page

    Hopefully I'm in the right spot. I know my script includes JSON, but I know very little about Javascript in general.

    I just started this site last night and ran into the issue when I tried to add a second gallery. The second gallery shows up (thumbnails and navigation) but it fails to actually display the large images. I'm assuming I need to assign a second set of variables somewhere but I'm no master at javascript so I don't know where to begin. Please help?

    I've uploaded a zip of the entire site to sendspace here:


    within the .zip file you'll see MULTIPLE GALLERIES ISSUE.txt

    i wrote the files and lines of code which pertain to this issue to help navigate quicker.

  • #2
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Thanked 595 Times in 575 Posts
    please post the gallery javascript code here.
    sounds like you are trying to reuse a global variable.
    turning it into a local variable, or turning the global into a container of gallery image sets should fix it, but it's too much work for most us to play around with zip files.
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/9/03) IE7:0.1, IE8:4.6, IE11:9.1, IE9:3.1, IE10:3.0, FF:17.2, CH:46, SF:11.4, NON-MOUSE:38%


    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts