Tuesday, 27 September 2011

Init error and IE9 problems in Galleria, jQuery plugin

If you are getting Init failed: Gallery instance already initialized, its because you should give the link for the theme first before giving the link to the galleria js file. For eg:, it should be like this:

<script src="classic/galleria.classic.min.js">
</script>
<link href="classic/galleria.classic.css" rel="stylesheet"></link>
<script src="js/galleria-1.2.5.min.js" type="text/javascript">
</script>
Not like this,

<script src="js/galleria-1.2.5.min.js" type="text/javascript">
</script>
<script src="classic/galleria.classic.min.js">
</script>
<link href="classic/galleria.classic.css" rel="stylesheet"></link>

Also, galleria doesn't seem to be loading properly in IE9. To fix this, first make 
sure that you give the latest jquery CDN link. Then, insert this , as meta tag in 
the head of the page,

<meta http-equiv="X-UA-Compatible" content="IE=8" >

No comments:

Post a Comment