javascript - Magnific Popup Jquery: Ajax Popup is not working -
i trying show web page content in popup window using magnific popup jquery
i using ajax
type show content.
i tried below code.
html:
<a class="ajax" href="http://www.google.com"> text </a>
jquery:
<script type="text/javascript"> $(document).ready(function() { $('.ajax').magnificpopup({ delegate: 'a', type: 'ajax', aligntop: true, overflowy: 'scroll' // know popup content tall set scroll overflow default avoid jump } } }); }); </script>
please check jsfiddle
in terms of jquery novice. did wrong here?
the problem external links. can't load/interpreted correctly cause wrong mime type.
http://dimsemenov-static.s3.amazonaws.com/dist/magnific-popup.css http://dimsemenov-static.s3.amazonaws.com/dist/jquery.magnific-popup.min.js
here fiddle working external resources.
the "real" problem don't work link on other origin.
error: refused display 'https://www.google.de/?gws_rd=ssl' in frame because set 'x-frame-options' 'sameorigin'.
Comments
Post a Comment