Quantcast
Channel: WordPress.org Forums » [Contact Form 7] Support
Viewing all articles
Browse latest Browse all 49500

samighawi on "[Plugin: Contact Form 7] Contact Form inside Twitter Bootstrap Popover"

$
0
0

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

http://wordpress.org/extend/plugins/contact-form-7/


Viewing all articles
Browse latest Browse all 49500

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>