Replies: 3 comments 6 replies
-
I used to achieve this in good ol' colorbox via $('a.js-fancybox').fancybox({
type: 'ajax',
src: $(this).prop('href'),
}); Which doesn't work with v5 since I don't have the element at hand to fetch |
Beta Was this translation helpful? Give feedback.
-
BTW: I still very much preferred the jquery syntax, plus it's now very awkward to limit invocation to jquery element subsets. Example real-world initialize code, used to fire up loaded modal content: const bootstrap = function(parent) {
const base = $(parent || document);
base.find('a.js-fancybox').fancybox({
type: 'ajax',
src: $(this).prop('href'),
afterShow: function(instance, current) {
bootstrap(current.$slide);
},
});
// more plugins initialized below....
}; |
Beta Was this translation helpful? Give feedback.
-
Ok it doesn't work now for the But really, you pulled |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want a regular page to load as ajax inside of a modal window.
Judging from the documentation I expected it to be as "complicated" as
but if I add the
js-fancybox
class to any link it opens Fancybox with simply "Image Not Found":What do?
Beta Was this translation helpful? Give feedback.
All reactions