Solved

galleria Gallery with JSON feed

Posted on 2014-02-06
1
686 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

623 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