I’m trying to achieve something quite basic. I am using an openly available jQuery module (called slides) but i need to modifiy it in a way so that i can control the object from the outside.
Now when initializing like this:
$('#myDivId').slides({
preload: false,
generatePagination: false
});
It all works, but i am not seeing any way to access the slides object later on. Like this:
var slideshow=$('#myDivId').slides({
preload: false,
generatePagination: false
});
Now i would like to be able to do something like this:
slideshow.animate('next');
The content of the variable slideshow is not the actual object. I assume this has something to do with how jQuery works.
Once this works i would be able to make more specific calls to the slideshow and therefore adapt it to work properly in my ‘frontend usage environment’.
Now what i would like to have is the actual generated object to be returned, or at least be additionally available in the returned data.
Can anyone point me in the right direction here?
Click here to see demonstration in jsFiddle
Thank You!
Using jQuery’s trigger method i was able to simulate behaviour of certain elements within the slideshow, thus finding a way not to require calling any methods on the parent object.