Form input using Ajax lightbox

2 replies · opened Feb 13, 2017

CCharlesKhunouFeb 13, 2017

Hi

I am trying to create a form using the Ajax Lightbox function, it does pick up and display the form in a popup but when I click on the form to input the data the pop up closes, when I click on any other part of the pop up window it closes.

I have tried using "iFrame" but the problem is that the css does not pickup and I actually like the way the "Ajax" version displays the form.

This is what I am using.
<li>Get a free quote</li>

However I think the problem is somewhere here but even if I unlink the functions.js nothing changes to show that it is fetching the close event listener from from functions.

		if( $lightboxAjaxEl.length &gt; 0 ) {
			$lightboxAjaxEl.magnificPopup({
				type: 'ajax',
				closeBtnInside: false,
				callbacks: {
					ajaxContentAdded: function(mfpResponse) {
						SEMICOLON.widget.loadFlexSlider();
						SEMICOLON.initialize.resizeVideos();
						SEMICOLON.widget.masonryThumbs();
					},
					open: function() {
						$body.addClass('ohidden');
						SEMICOLON.widget.contactForm();
					},
					close: function() {
						$body.removeClass('ohidden');
					}
				}
			});

Thanks

SSemicolon WebSTAFFFeb 15, 2017

Hello,

Can you please provide us with a Live URL so that we can check out the exact issue and provide you with a more accurate solution for this. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard