Solved

galleria Gallery with JSON feed

Posted on 2014-02-06
1
656 Views
Last Modified: 2014-02-12
Hi

I am using a JS plugin called galleria.
I am using JSON to feed it the data and all works fine

How can i instruct it to use an external JSON file. Currently i have to have the JSON on same page as the galleria  run function

i.e. Galleria.run('#galleria', { dataSource: data });

i want "data" to be an external JSON feed

any ideas?

Thanks
0
Comment
Question by:coolispaul
1 Comment
 
LVL 32

Accepted Solution

by:
Big Monty earned 500 total points
ID: 39839359
you're going to have to load the external data beforehand, via ajax, and then copy the results into the data variable

instead of copying and pasting the code from this example, I suggest browsing the thread or do a google search for "galleria load external json via ajax"
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now