Solved

galleria Gallery with JSON feed

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
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 …

706 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

16 Experts available now in Live!

Get 1:1 Help Now