Solved

galleria Gallery with JSON feed

Posted on 2014-02-06
1
664 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 33

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

821 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