nathansearles / slidesjs

SlidesJS is obsolete and no longer maintained.
https://nathansearles.github.io/slidesjs/
1.72k stars 356 forks source link

Slide doesn't work with knockout attribute (data-bind) #541

Open PlanCZero opened 11 years ago

PlanCZero commented 11 years ago

Hello. I try to implement slides with knockout.js, It seem doesn't work when we have data-bind attribute in the HTML code.

Example :

<div id="slides">
    <div>
        <img width="1000" height="380" data-bind="attr: { src: img }" src="banner/bannerlanding/1007/slider1_20130704105611.jpg">
        <a data-bind="attr: { href: link }" class="green_button slider1" href="">Join now</a>
    </div>

    <div>
        <img width="1000" height="380" data-bind="attr: { src: img }" src="banner/bannerlanding/1009/slider3_20130704105659.jpg">
        <a data-bind="attr: { href: link }" class="green_button slider1" href="">Join now</a>
    </div>

    <div>
        <img width="1000" height="380" data-bind="attr: { src: img }" src="banner/bannerlanding/1010/slider2_20130704105757.jpg">
        <a data-bind="attr: { href: link }" class="green_button slider1" href="">Join now</a>
    </div>
</div>

I try to removed all data-bind="" attribute then it work perfect. Please advise. Best Regards. BJ