stevenwanderski / bxslider-4

Responsive jQuery content slider
Other
4.22k stars 1.84k forks source link

Public methods doesn't work on multiple elements #436

Open scazzy opened 10 years ago

scazzy commented 10 years ago

When used bxSlider with a class selector, and happens to be many sliders with that class name, the public methods dont seem to work. But when called with just a single slider, works charm.

richlewis14 commented 10 years ago

Im having the same problem.. I have put this up on stackoverflow (along with current setup) http://stackoverflow.com/questions/22295640/multiple-click-events-with-bxslider.. did you manage to resolve this in the end?

nightgrey commented 10 years ago

I had the same problem today and was looking for a fix. I'm by no means a JavaScript master (so correct me if I'm talking nonsense), but after some research and looking in the source code, it's the fault of the plugin itself and you had to rewrite, at least restructure the whole plugin to get this working. That's a pity because other than that, the bxslider is really cool.

jszoja commented 4 years ago

I've made a workaround for it, but it is far from ideal solution needed in that case. Anyway it works for me. Have a look at commit