internet explorer 9 - Magnific Popup + ajax call for html fragment -
trying implement magnific pop-up ajax content. want load element page link pointing to. make easier i'm using "data-fragment" attribute on links. markup looks this:
<a href="browse-taxonomy.html" class="modal-ajax-fragment" data-fragment="#browse-taxonomy" title="browse">
js function looks this:
$( '.modal-ajax-fragment' ).magnificpopup({ type: 'ajax', fixedcontentpos: false, fixedbgpos: true, overflowy: 'auto', closebtninside: true, preloader: false, midclick: true, removaldelay: 300, mainclass: 'my-mfp-zoom-in', disableon: 480, callbacks: { parseajax: function( mfpresponse ) { var mp = $.magnificpopup.instance, t = $( mp.curritem.el[0] ), fragment = ( t.data( 'fragment' ) ); mfpresponse.data = $( mfpresponse.data ).find( fragment ); console.log( 'ajax content loaded:', mfpresponse ); } } });
works great in modern browsers (chrome, ff, safari, ie10) -- must doing wrong b/c absolutely chokes in ie9 , below. ie's console/inspector tells me nothing -- work after spinning minutes -- locks program up.
any ideas causing such headaches ie? thanks!
solution: remove line logs mfpresponse console:
// console.log( 'ajax content loaded:', mfpresponse );
Comments
Post a Comment