V
V
vasRmba2017-04-25 21:17:21
JavaScript
vasRmba, 2017-04-25 21:17:21

Bootstrap lightbox opens in new window instead of box, why?

I downloaded the lightbox library from here , connected js and css, pasted through data-toggle="lightbox" but opened in a new window.

<tr>
          <th scope="row"><a data-toggle="lightbox" href="img\osnastka\4642.jpg"><img src="img\osnastka\4642.jpg" class="img-fluid" alt="Автоматическая печать 40 мм."> </a></th>
          <td>Trodat (Австрия) 4642</td>
          <td>40 мм.</td>
          <td class="success">600 руб.</td>
        </tr>


Chrome writes Uncaught TypeError: Cannot read property 'Constructor' of undefined on line 24
and there
// We depend upon Twitter Bootstrap's Modal library to simplify things here
  Lightbox.prototype = $.extend({},$.fn.modal.Constructor.prototype);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2017-04-26
@PavelMonro

You need a regular Lightbox for code like yours Lightbox 2 /
Bootstrap Lightbox is more likely to be used for a popup window

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question