wandoledzep/bxslider — Issue #87: Control Forward and Backward with Click from external Javascript call
Author: HexCyclos
Created: 2012-02-07 05:23:54+00:00
State: open

Tried a couple of "standard procedures", but this one has me stumped.

In a nutshell, I need to fire the forward - $nextHtml.click(function() {base.goToNextSlide(); - and backward - $prevHtml.click(function() {base.goToPreviousSlide(); - from an external javascript functional call that utilizes a "click".

In other words, sending a click to the "nextImage" without actually clicking on the image that is located in the nextSelector.

I've tried the following simple options within a "standard" JavaScript function that looks like namedFunction() { // do stuff }:

1 - slider.goToNextSlide() - called from var slider = $('#slider1').bxSlider();
2 - var forwardButton = document.getElementById('nextControl'); // Locate the forward a id
forwardButton.click();	// Click on the a id of the forward button

Any ideas? Thanks in advance.