Okay I have gotten my form to finally popup in a modal window with fancybox but will not refresh page in modal window. Here's what I got :
fancybox function written within jquery.fancybox-v1.3.4.js at very bottom
$(document).ready(function() {
$("a#cnt").fancybox({
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'speedIn' : 600,
'speedOut' : 200,
'overlayShow' : false
});
});
Next, I put a hidden div within footer.php of wordpress template directory
<div id="contact-form" style="display:none"> <?php gravity_form(1, true, true); ?> </div>
Then I created a post and made a test link to hidden div
<a href="#gform_wrapper_1" id="cnt">contact</a>
note that I used #gform_wrapper_1
because this is what is returned to the browser.
Okay so where did I got wrong ?
Michael Sablatura