ashleydw / lightbox

A lightbox gallery plugin for Bootstrap
http://ashleydw.github.io/lightbox
MIT License
1.85k stars 1.3k forks source link

Error when using with bootstrap 3.x #214

Closed kryz81 closed 7 years ago

kryz81 commented 7 years ago

Hi, the plugin doesn't work with bootstrap 3,

I get this error: Uncaught TypeError: data[option] is not a function

in this bootstrap Plugin function: if (typeof option == 'string') data[option](_relatedTarget)

Bootstrap 3.3.7 ekko-lightbox 4.0.2

ashleydw commented 7 years ago

v4 almost definitely does work with Bootstrap 3. Do you have an example page?

snetts commented 7 years ago

I have tried out an implementation on version 3.3.7 of bootstrap but I am getting the error Uncaught TypeError: f[b] is not a function

What is the problem, could please check my code, here

Thanks.

ashleydw commented 7 years ago

@snetts post a minimal example, i can't figure out what i am looking at on your site

ashleydw commented 7 years ago

@Karlwhct You are using the wrong version. As stated in the readme and documentation:

Note!: This version is for Bootstrap 4, for Bootstrap 3 use the older version.

For bootstrap 3: https://github.com/ashleydw/lightbox/releases/tag/v4.0.2

snetts commented 7 years ago

Thanks a lot. It works fine now.

Karlwhct commented 7 years ago

Thanks a lot. It works fine now.

mehmetalidumlu commented 7 years ago

Hi, I use bootstrap 3.3.7 and lightbox v4.0.1 in my project. But when i click on image bootstrap.js throw this exception:"0x800a01b6 - JavaScript runtime error: Object doesn't support property or method '_handleUpdate'. Is anybody faced this problem? Thanks...

ashleydw commented 7 years ago

please post your page or jsfiddle @mehmetalidumlu

ashleydw commented 7 years ago

5.1.0 is BS3 compatible