Hello and welcome to our community! Is this your first visit?
Register
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
    Posts
    1
    Thanks
    0
    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:

    http://www.sendspace.com/file/4my5x5

    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
    Location
    Urbana
    Posts
    4,461
    Thanks
    11
    Thanked 600 Times in 580 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
    •