magnific-popup


magnific-popup - re-initiate on ajax content


I've the following code to initiate Magnific-Popup on my elements and everything works fine:
$( '.client-logo-overlay' ).magnificPopup({
//modal: true,
//closeBtnInside:true,
//closeOnBgClick: true,
//showCloseBtn: true,
delegate: 'a',
type: 'ajax',
ajax: {
settings: {
url: $( this ).attr( 'href' ),
type: 'POST'
}
},
callbacks: {
parseAjax: function( mfpResponse ) {
var html = $( mfpResponse.data ).find( 'article' );
mfpResponse.data = $( '<div>', { class: 'white-popup small' } ).append( html );
}
}
});
However, when loading some content using AJAX, MagnificPopup doesn't work anymore on those newly inserted elements - what am I missing.
Any help is very much appreciated.
Thanks

Related Links

magnific popup modal closes on click
Magnific popup: getting “The image could not be loaded”
How to give a fixed size to image in magnific-popup pluggin
magnific popup Inline Lightbox Gallery how to specify item in array from html link
how to make browser back close magnific-popup
Simple Magnific Popup Gallery not working
Magnific Popup onload calling a url
callbacks not firing when opening a magnific popup from another one
Magnific Popup - taller mfp-bottom-bar causes max image height issue
How to generate a (magnific popup)-gallery without a-tags
Add data to items in Magnific Popup
How to set the divs to make Magnific Popup animations work
how to display map in mobile devices using magnific popup?
Magnific Popup - Counter in Videogallery
how to manually open and close the popup using Magnific-Popup
How to customize arrows and close button?

Categories

HOME
cakephp
sendgrid
vim
debugging
pycharm
path-finding
react-virtualized
appx
rsync
yahoo-oauth
cmd
graphql
google-project-tango
pivotal-cloud-foundry
enterprise-library-5
constraint-programming
contact
facebook-messenger-bot
amazon-cloudformation
gitpitch
dacpac
adobe-analytics
dax
qt-creator
postgres-xl
php-7.1
messages
carthage
clearcase-ucm
google-static-maps
physics-engine
arabic
kudan
kannel
maxmind
ping
jaxb2
vision
directx-10
http-get
avcapturesession
wallpaper
android-ble
starteam
jna
tasker
awt
android-tabhost
botbuilder
convertapi
pnotify
dandelion
svmlight
snmptrapd
pycaffe
url-masking
transmitfile
etsy
disque
nsviewcontroller
php-parse-error
r-tree
ora-00900
comobject
django-unittest
tarjans-algorithm
unity3d-gui
facebook-graph-api-v2.4
block-device
xc16
phalanger
device-manager
has-many-through
expected-exception
hippomocks
kgdb
balanced-payments
html5-notifications
multiprocessor
jsctypes
sitemesh
seed
mqx
sabredav
angularjs-controller
mt
bluepill
hosts-file
regsvr32
osql
spring-portlet-mvc
servicehost
appendto
celltable
datareader
zend-translate
revisions
perfect-hash
backcolor
ajax-forms

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App