Home › Forums › Quform WordPress › Load More via ajax not working pop-up window.
- This topic has 5 replies, 2 voices, and was last updated 9 years, 9 months ago by
Ally.
- AuthorPosts
- July 26, 2015 at 6:10 am #16313
MAXIS322718
ParticipantHello. I have a portfolio page from a mesh of 50 elements, which first loads 10 items per page, and other elements are loaded using Load More via ajax. I code in the page grid portfolio is placed in the cycle
echo do_shortcode('[iphorm_popup id=4 name="Акция" options="{overlayColor:\'#f3eddf\',padding: \'4px\',onStart: function(){$(\'#fancybox-outer\').css(\'background-color\', \'#e8e8e6\');$(\'#fancybox-content\').css(\'border\', \'4px solid #BD6E3B\');$(\'#fancybox-wrap, #fancybox-content\').css(\'width\', \'auto\')}, onComplete: function(){}}"]<span class="mpcth-read-more-my" href="#">Оставить заявку<i class="fa fa-angle-right"></i></span>[/iphorm_popup]')
And no matter what I connect through but this do_shortcode or, as you have shown
if (function_exists('iphorm_popup')) echo iphorm_popup(4, ' HTML ');
The result is the same. Pop-up form works only for the first 10 mesh elements, and other elements that are loaded by pressing the Load More button
pop-up form is not working. Please tell me how to fix this problem?July 27, 2015 at 1:38 pm #16330Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
July 27, 2015 at 4:27 pm #16336MAXIS322718
ParticipantTo download Ajax used gallery portfolio theme Blaszok – Multi-Purpose Responsive Theme
here is the link http://master-dom-nk.ru/repuk
I hope you can help me.July 28, 2015 at 10:53 am #16348Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
July 29, 2015 at 9:11 am #16357MAXIS322718
ParticipantNot a lot has altered your code that was hiding the error message if it is pressed the send button without filling the fields and then open another form. It seems to work just don’t know if I did?
<script>
jQuery(document).ready(function ($) {
$('#mpcth_content_wrap').on('click', '.mpcth-post .mpcth-read-more-my', function () {
var $post = $(this).closest('.mpcth-post'),
imageSrc = $post.find('.mpcth-post-thumbnail img').attr('src'),
title = $post.find('.mpcth-post-title-p').text().trim();// Set the image
$('.iphorm_1_4-element-wrap img').attr('src', imageSrc);// Set the title
$('.iphorm_1_3').val(title);// Show the form
$('.iphorm-fancybox-link-1').click();$('div').remove('.iphorm-errors-list');
return false;
});
});
</script>And another question would it be possible to send this picture in e-mail?
Thank You very much.
You’re a miracle worker. You have the best support.- This reply was modified 9 years, 9 months ago by
MAXIS322718.
July 29, 2015 at 5:44 pm #16374Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- This reply was modified 9 years, 9 months ago by
- AuthorPosts
- You must be logged in to reply to this topic.