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. #2
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Thanked 626 Times in 605 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.
    Create, Share, and Debug HTML pages and snippets with a cool new web app I helped create: pagedemos.com


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