S
S
sashafokin2015-02-16 15:57:35
fancyBox
sashafokin, 2015-02-16 15:57:35

How to make popup window based on lightbox/fancybox?

Hey! The title of the question does not quite reflect its essence, but still.
Up to this point, I've only dealt with popups (lightbox and fancybox) to create an image gallery. But now there is a question of this kind: it is necessary to make a contact form in this window, everything seems to work out, but there is one nuance that I cannot lose sight of.
In my implementation of the contact form, which is located in a pop-up window, everything is done according to the documentation and the link to call the form is now:

<a class="various" data-fancybox-type="iframe" href="/demo/iframe.html">Iframe</a>

In fact, the pop-up window contains the ENTIRE page that the link points to. (at least that's how it is for me). But I need to display only the form itself. To do this, I tried to use the following construction:
<a class="various" href="#inline">Inline</a>

и даже так
<a class="various" href="test.html#inline">Inline</a>

And again everything worked as it should, but the following question arose: if the user does not have any window when javascript is turned off, then how can I make the link lead to a page with a contact form?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question