Getting Galleria jQuery photo gallery to work using AJAX

I put this as part of my AJAX response: Notice I had to put the sizes there during my AJAX.

 

<script>

$(document).ready(function() { 
$(‘#gallery’).galleria({
width: $imageFrame_width,
height: $imageFrame_height
});
});

</script>

 

 

Then in my JS file, I make sure to run this only ONCE:

Galleria.loadTheme(‘js/galleria/themes/classic/galleria.classic.min.js’);

That’s about it. 

 

Leave a Reply