Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>ok, here is another way, the iframe method seems a little bit old, you can use ajax here. something like this :</p> <p>First add a link in your html (in example, the last element) :</p> <pre><code>&lt;form action="success.php" method="post" name="contact" id="contact"&gt; &lt;input type="radio" class="checkbox" name="one" value="yes" title="Do you find yourself using drugs even when you don't want to?: Yes" /&gt; &lt;label class="question"&gt;Do you find yourself using drugs even when you don't want to?&lt;/label&gt; &lt;input type="submit" name="Submit" id="submit" class="fancybox fancybox.iframe" /&gt;&lt;!-- this is useless here --&gt; &lt;a id="check" data-fancybox-type="ajax" href="success.php" id="check"&gt;Result&lt;/a&gt; &lt;/form&gt; </code></pre> <p>according to <a href="https://stackoverflow.com/questions/14316054/post-preview-passing-data-with-ajax-and-fancybox/14343547#14343547">this post</a>, after that we send the data through ajax on click of link, and get the answer in the script again :</p> <pre><code>&lt;script type="text/javascript"&gt; jQuery(document).ready(function() { $('#check').on("click", function (e) { e.preventDefault(); // avoids calling success.php from the link $.ajax({ type: "POST", cache: false, url: this.href, // success.php data: $("#contact").serializeArray(), // all form fields success: function (data) { // on success, post returned data in fancybox $.fancybox(data, { // fancybox API options fitToView: false, openEffect: 'none', closeEffect: 'none' }); // fancybox } // success }); // ajax }); // on }); //ready &lt;/script&gt; </code></pre> <p>and another thing is that <strong>.browser is removed from jquery</strong> instead of that you can use <a href="http://modernizr.com/" rel="nofollow noreferrer">Modernizr</a>. <em><a href="http://jquery.com/upgrade-guide/1.9/#jquery-browser-removed" rel="nofollow noreferrer">Reference</a></em></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload