I'm trying to implement the Jssor slider into my page, but I keep coming up with that error in the title.
My content is being dynamically created via Javascript, like so:
var slide = app.createHTML('div', "", {'id':'inventorySlides'}, null);
var div = document.getElementById('invDiv');
div.appendChild(slide);
and then I procedurally generate cell divs in the same way and append them to slide
.
I've defined a function in my main controller as in the example on the basic usage page (http://www.jssor.com/development/basic-usage-no-jquery.html), and after all the content has been generated and appended, I call the function
jssor_slider1_starter('inventorySlides');
But then I get the error message in the console. I've tried logging the inventorySlides div, and it definitely exists in the DOM, so I know it's not that. I tried searching for currentStyles
, which turns out is just on IE and Opera, and I'm using Chrome.
So is it something I'm doing wrong? Or is it Jssor that's misbehaving?