i have implement a Image Gallery using javascript,JQuery,Galleria.io library
everything works as expected we are using Zk Framework
my question is
how can i get the Selected image or selected index to able to delete it in both image gallery and the dataBase here is what i have try so far.
this is how i have created the gallery
<script type="text/javascript">Galleria.loadTheme('gallery/galleria.classic.min.js');Galleria.run('#galleria');</script>
when zk clicked a button i am calling a javascript snippet like this
var index = $('#galleria').getIndex();alert(index);
but throws..
Object #<Object> has no method 'getIndex' (TypeError)
i think knowing the index should be enough for me delete the image i am trying to call this method
.getIndex()
returns Number
Returns the current index.
See API