dimsemenov / Magnific-Popup

Light and responsive lightbox script with focus on performance.
http://dimsemenov.com/plugins/magnific-popup/
MIT License
11.39k stars 3.49k forks source link

Ajax request not loading. #317

Open obh opened 10 years ago

obh commented 10 years ago

Hi,

I've setup a very basic test for this library. However the appendContent method in the library (for an ajax call) throws the following error:

TypeError: document is null safeFrag = document.createDocumentFragment();

Using jquery-1.9. Is there something wrong I'm doing?

dimsemenov commented 10 years ago

Please provide isolated example of issue.

AnantSaraf commented 10 years ago

issue

mahyarff commented 10 years ago

hi, i have the same problem using jquery 1.11.1

$.magnificPopup.open( { items: { src: '/default.aspx/ajax', type: 'ajax', }, ajax: { settings: { type: "POST", data: "{'id':'1'}", contentType: "application/json" } } })

mpop_error