<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: ajax not working with hidden div method v1.5</title>
		<link>https://legacy.forums.gravityhelp.com/topic/ajax-not-working-with-hidden-div-method-v15</link>
		<description>Gravity Support Forums Topic: ajax not working with hidden div method v1.5</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 10:47:36 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/ajax-not-working-with-hidden-div-method-v15" rel="self" type="application/rss+xml" />

		<item>
			<title>David Smith on "ajax not working with hidden div method v1.5"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/ajax-not-working-with-hidden-div-method-v15#post-17958</link>
			<pubDate>Tue, 08 Feb 2011 13:56:17 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">17958@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Michael,&#60;/p&#62;
&#60;p&#62;I'm still unable to create the issue where the entire site appears inside the fancybox. What I'm seeing is the fancy box taking up the left half of screen in all browsers (Firefox, Chrome, IE8, Safari). It sounds like there is some sort of configuration error with the way you have set up fancybox and without being able to recreate the reported issue on my end there isn't much advice I can offer.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>firstbasedesign on "ajax not working with hidden div method v1.5"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/ajax-not-working-with-hidden-div-method-v15#post-17940</link>
			<pubDate>Tue, 08 Feb 2011 13:27:42 +0000</pubDate>
			<dc:creator>firstbasedesign</dc:creator>
			<guid isPermaLink="false">17940@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Michael, how did you get your fancybox popup to stay fixed on the page? Mine jumps all round the bloomin page!!!&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://poie.thinkbigcreative.co.uk/&#34; rel=&#34;nofollow&#34;&#62;http://poie.thinkbigcreative.co.uk/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;(Small link on there 'click for form')&#60;/p&#62;
&#60;p&#62;For example if you click without filling fields, when the error message pops up the modal/form jumps down the page. What the hell?!?!?&#60;/p&#62;
&#60;p&#62;Any thought?&#60;/p&#62;
&#60;p&#62;many thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>michaeldablatura on "ajax not working with hidden div method v1.5"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/ajax-not-working-with-hidden-div-method-v15#post-17855</link>
			<pubDate>Mon, 07 Feb 2011 17:31:02 +0000</pubDate>
			<dc:creator>michaeldablatura</dc:creator>
			<guid isPermaLink="false">17855@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here are the steps that make the entire homepage show up in the fancybox.&#60;/p&#62;
&#60;p&#62;1. Click on contact link.&#60;/p&#62;
&#60;p&#62;2. enter data and click submit.&#60;/p&#62;
&#60;p&#62;3. after submit success message pops up. close success message.&#60;/p&#62;
&#60;p&#62;4. click on contact link again and entire homepage shows up in fancybox.&#60;/p&#62;
&#60;p&#62;Just tried and it's still happening.&#60;/p&#62;
&#60;p&#62;Now if I redirect to another page on a successful completion of the form, then go back to homepage it works. Any thoughts?&#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Michael Sablatura
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "ajax not working with hidden div method v1.5"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/ajax-not-working-with-hidden-div-method-v15#post-17851</link>
			<pubDate>Mon, 07 Feb 2011 17:07:42 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">17851@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Michael, this is what I'm seeing when I click on the link the first time: &#60;a href=&#34;http://grab.by/8OSi&#34; rel=&#34;nofollow&#34;&#62;http://grab.by/8OSi&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I see the same thing when I click on it again. Were you able to resolve the issue with the entire site displaying inside the fancybox and the previous contents showing up?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>michaeldablatura on "ajax not working with hidden div method v1.5"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/ajax-not-working-with-hidden-div-method-v15#post-17780</link>
			<pubDate>Sun, 06 Feb 2011 15:55:35 +0000</pubDate>
			<dc:creator>michaeldablatura</dc:creator>
			<guid isPermaLink="false">17780@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You know, I think it has something to do with my onClosed function in contact-form.js&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;jQuery(document).ready(function() {

	jQuery(&#38;quot;a#cnt&#38;quot;).fancybox({
		&#38;#39;autoDimensions&#38;#39; : true,
		&#38;#39;overlayOpacity&#38;#39; : &#38;#39;0.9&#38;#39;,
		&#38;#39;overlayColor&#38;#39; : &#38;#39;#000&#38;#39;,
		&#38;#39;hideOnContentClick&#38;#39; : false,
		&#38;#39;autoScale&#38;#39; : true,
		&#38;#39;transitionIn&#38;#39; : 600,
		&#38;#39;transitionOut&#38;#39; : 400,
		&#38;#39;scrolling&#38;#39; : &#38;#39;no&#38;#39;,
		&#38;#39;centerOnScroll&#38;#39; : true,
		&#38;#39;padding&#38;#39; : 20,
		&#38;#39;onClosed&#38;#39; : function() {
			window.location.reload(true);
			;
		}

	});

});&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;When the window is reloaded after close of success message the url points to :&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;a href=&#34;http://audiovisualreference.com/test.com/#gform_wrapper_1&#34; rel=&#34;nofollow&#34;&#62;http://audiovisualreference.com/test.com/#gform_wrapper_1&#60;/a&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;instead of :&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;a href=&#34;http://audiovisualreference.com/test.com/&#34; rel=&#34;nofollow&#34;&#62;http://audiovisualreference.com/test.com/&#60;/a&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Is this the problem ?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>michaeldablatura on "ajax not working with hidden div method v1.5"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/ajax-not-working-with-hidden-div-method-v15#post-17779</link>
			<pubDate>Sun, 06 Feb 2011 15:51:54 +0000</pubDate>
			<dc:creator>michaeldablatura</dc:creator>
			<guid isPermaLink="false">17779@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here is the test site, just click on the contact link of first post.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://audiovisualreference.com/test.com/&#34; rel=&#34;nofollow&#34;&#62;http://audiovisualreference.com/test.com/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "ajax not working with hidden div method v1.5"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/ajax-not-working-with-hidden-div-method-v15#post-17767</link>
			<pubDate>Sun, 06 Feb 2011 08:29:59 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">17767@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ignore my request in the other thread for a link to your form and please post that here. :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>michaeldablatura on "ajax not working with hidden div method v1.5"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/ajax-not-working-with-hidden-div-method-v15#post-17750</link>
			<pubDate>Sat, 05 Feb 2011 20:01:55 +0000</pubDate>
			<dc:creator>michaeldablatura</dc:creator>
			<guid isPermaLink="false">17750@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So I have almost figured it out ...&#60;/p&#62;
&#60;p&#62;I changed my hidden div code to&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;div id=&#38;quot;contact-form&#38;quot; style=&#38;quot;display:none&#38;quot;&#38;gt; &#38;lt;?php gravity_form(1, true, true, true, true, true); ?&#38;gt; &#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Note the extra values in the array, thank you eclipse. &#60;/p&#62;
&#60;p&#62;After I submit the form it gives me the success message, great. Then I close the fancybox success message. Next, without refreshing the page I click on the same link to test again and it opens my entire home page in a fancybox.&#60;/p&#62;
&#60;p&#62;So, I click link, fancybox opens, enter data in fancybox form, submit, get success message, close fancybox, click link again, my entire homepage opens in a fancybox. What's the problem?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>michaeldablatura on "ajax not working with hidden div method v1.5"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/ajax-not-working-with-hidden-div-method-v15#post-17745</link>
			<pubDate>Sat, 05 Feb 2011 17:42:55 +0000</pubDate>
			<dc:creator>michaeldablatura</dc:creator>
			<guid isPermaLink="false">17745@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;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 :&#60;/p&#62;
&#60;p&#62;fancybox function written within jquery.fancybox-v1.3.4.js at very bottom&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$(document).ready(function() {

		$(&#38;quot;a#cnt&#38;quot;).fancybox({
			&#38;#39;transitionIn&#38;#39;	:	&#38;#39;elastic&#38;#39;,
			&#38;#39;transitionOut&#38;#39;	:	&#38;#39;elastic&#38;#39;,
			&#38;#39;speedIn&#38;#39;		:	600,
			&#38;#39;speedOut&#38;#39;		:	200,
			&#38;#39;overlayShow&#38;#39;	:	false
		});

	});&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Next, I put a hidden div within footer.php of wordpress template directory&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;div id=&#38;quot;contact-form&#38;quot; style=&#38;quot;display:none&#38;quot;&#38;gt; &#38;lt;?php gravity_form(1, true, true); ?&#38;gt; &#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Then I created a post and made a test link to hidden div&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;a href=&#38;quot;#gform_wrapper_1&#38;quot; id=&#38;quot;cnt&#38;quot;&#38;gt;contact&#38;lt;/a&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;note that I used &#60;code&#62;#gform_wrapper_1&#60;/code&#62; because this is what is returned to the browser.&#60;/p&#62;
&#60;p&#62;Okay so where did I got wrong ?&#60;/p&#62;
&#60;p&#62;Michael Sablatura
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
