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 613 Times in 593 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 2014/10/20)
    BROWSER STATS [% share] (2014/9/03) IE7:0.1, IE8:4.3, IE11:9.2, IE9:2.7, IE10:2.6, FF:16.8, CH:47.5, SF:7.8, NON-MOUSE:37%


    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