I am building a site with the gallery as the main feature, and I need the gallery to have "categories". I am going to load in the images via AJAX but at the moment just getting the Galleria gallery to load in different images is proving challenging. My code is as follows:
function swap_gallery() {
var new_slideshow = [
{ image: '../images/slideshow/architecture_3.jpg' },
{ image: '../images/slideshow/report_1.jpg' }
];
Galleria.get(0).load({
data_source: new_slideshow
});
}
When I run this function I get this error in Firebug:
Error: Load failed: no data found.
For the life of me I can't work this one out.