I am currently using the form in my local website and it is working correctly. However, I tried to add the form to a Twitter Popover but Ajax stopped working inside the popover and the page refreshes.
I am not sure whether the changes should be done from the popover or the plugin, but is it possible to do such a thing?
Please find below some details about the code:
Popover Button:
<div id="contactButton" rel="popover">CONTACT</div>
Javascript:
<script type='text/javascript'>
jQuery("#contactButton").popover({ title: 'Contact Form', html : true,
content: function() {
return jQuery("#hiddenFormDiv").html();
}
});
</script>
Form:
<div id="hiddenFormDiv"><?php echo do_shortcode("[contact-form-7 id=128]"); ?></div>
Thank you in advance for any kind of hint.
Best Regards,
Sami