Display Magnific Popup using AJAX on Page Load
Dear Sir/Madam
I found a solution to
display an Image on pageload
and used it successfully
in following program
Code to display image on page load
- (function($) {
- $(window).load(function () {
- // retrieved this line of code from http://dimsemenov.com/plugins/magnific-popup/documentation.html#api
- $.magnificPopup.open({
- items: {
- src: 'images/header.jpg'
- },
- type: 'image'
- // You may add options here, they're exactly the same as for $.fn.magnificPopup call
- // Note that some settings that rely on click event (like disableOn or midClick) will not work here
- }, 0);
- });
- })(jQuery);
which is working fine
I tried
- (function($) {
- $(window).load(function () {
- // retrieved this line of code from http://dimsemenov.com/plugins/magnific-popup/documentation.html#api
- //$.magnificPopup.open({
- $('.simple-ajax-popup').magnificPopup({
- type: 'ajax'
- });
- // You may add options here, they're exactly the same as for $.fn.magnificPopup call
- // Note that some settings that rely on click event (like disableOn or midClick) will not work here
- }, 0);
- });
- })(jQuery);
But could not succeed
pls hlp
-----------------------------------------------------------------------------------------------------------------------------------------
for your information
abcd.php is given below
- <table width="100%" border="0" cellspacing="0" cellpadding="0" style="background-color:#fff" align="center">
- <tr>
- <td style="height:auto;"> <?php
- echo 'Call a abcd.php on page load';
- ?></td>
- </tr>
- </table>
-