<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: Preview and confirmation pages within a frame</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Preview and confirmation pages within a frame</description>
<language>en</language>
<pubDate>Wed, 06 May 2026 04:36:08 +0000</pubDate>

<item>
<title>hotchecks on "Preview and confirmation pages within a frame"</title>
<link>https://www.machform.com/forums/topic/preview-and-confirmation-pages-within-a-frame#post-11596</link>
<pubDate>Tue, 15 Mar 2011 05:33:44 +0000</pubDate>
<dc:creator>hotchecks</dc:creator>
<guid isPermaLink="false">11596@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;You can also try disabling javascript redirects when you create the embed form:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
&#38;lt;?php&#60;br /&#62;
	require(&#34;/home/machform.php&#34;);&#60;br /&#62;
	$mf_param['form_id'] = 1;&#60;br /&#62;
	$mf_param['base_path'] = '';&#60;br /&#62;
	$mf_param['use_header_redirect'] = 'false'; // this disables the javascript redirect&#60;br /&#62;
	display_machform($mf_param);&#60;br /&#62;
?&#38;gt;&#60;br /&#62;
&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Preview and confirmation pages within a frame"</title>
<link>https://www.machform.com/forums/topic/preview-and-confirmation-pages-within-a-frame#post-5717</link>
<pubDate>Mon, 04 May 2009 14:27:32 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">5717@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;If the code above doesn't work for some of you, try to change this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;parent.location&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;into:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;self.location&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>laurencelok on "Preview and confirmation pages within a frame"</title>
<link>https://www.machform.com/forums/topic/preview-and-confirmation-pages-within-a-frame#post-5581</link>
<pubDate>Fri, 24 Apr 2009 03:27:51 +0000</pubDate>
<dc:creator>laurencelok</dc:creator>
<guid isPermaLink="false">5581@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;By the way, I am using an iframe called from a lightbox.
&#60;/p&#62;</description>
</item>
<item>
<title>laurencelok on "Preview and confirmation pages within a frame"</title>
<link>https://www.machform.com/forums/topic/preview-and-confirmation-pages-within-a-frame#post-5580</link>
<pubDate>Fri, 24 Apr 2009 03:26:50 +0000</pubDate>
<dc:creator>laurencelok</dc:creator>
<guid isPermaLink="false">5580@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi Yuniar,&#60;/p&#62;
&#60;p&#62;I am also having this problem. I made the two changes on lines 41 and 45 but the form still breaks out of the iframe: &#60;a href=&#34;http://laurelcrown.com/xhtml-template/product_page_bug.htm&#34; rel=&#34;nofollow&#34;&#62;http://laurelcrown.com/xhtml-template/product_page_bug.htm&#60;/a&#62; (click on &#34;Email this page&#34; link in ready to order box).&#60;/p&#62;
&#60;p&#62;Is there anything else you told denis to make this work?
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Preview and confirmation pages within a frame"</title>
<link>https://www.machform.com/forums/topic/preview-and-confirmation-pages-within-a-frame#post-5014</link>
<pubDate>Thu, 12 Mar 2009 17:21:33 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">5014@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I've replied yesterday. Check your spam folder in case you didn't get it.&#60;/p&#62;
&#60;p&#62;Otherwise, please try to edit code between line 41 in &#34;embed.php&#34; file, from :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;header(&#38;quot;Location: http{$ssl_suffix}://&#38;quot;.$_SERVER[&#38;#39;HTTP_HOST&#38;#39;].$_SERVER[&#38;#39;PHP_SELF&#38;#39;].&#38;quot;?id={$input_array[&#38;#39;form_id&#38;#39;]}&#38;#38;done=1&#38;quot;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;to become:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$success = &#38;quot;http{$ssl_suffix}://&#38;quot;.$_SERVER[&#38;#39;HTTP_HOST&#38;#39;].$_SERVER[&#38;#39;PHP_SELF&#38;#39;].&#38;quot;?id={$input_array[&#38;#39;form_id&#38;#39;]}&#38;#38;done=1&#38;quot;;

echo &#38;quot;&#38;lt;script type=\&#38;quot;text/javascript\&#38;quot;&#38;gt;parent.location = &#38;#39;{$success}&#38;#39;&#38;lt;/script&#38;gt;&#38;quot;;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>denis on "Preview and confirmation pages within a frame"</title>
<link>https://www.machform.com/forums/topic/preview-and-confirmation-pages-within-a-frame#post-5001</link>
<pubDate>Wed, 11 Mar 2009 17:38:41 +0000</pubDate>
<dc:creator>denis</dc:creator>
<guid isPermaLink="false">5001@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I emailed the infos, not sure if you got a chance to check it ? If that's useful I'll post any solution here later.&#60;br /&#62;
Thanks.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Preview and confirmation pages within a frame"</title>
<link>https://www.machform.com/forums/topic/preview-and-confirmation-pages-within-a-frame#post-4954</link>
<pubDate>Mon, 09 Mar 2009 12:13:07 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">4954@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;that's odd. can you let me know the URL to your page? So I can check it.&#60;br /&#62;
If you don't want to post it here, please mail to: customer.service [at] appnitro.com
&#60;/p&#62;</description>
</item>
<item>
<title>denis on "Preview and confirmation pages within a frame"</title>
<link>https://www.machform.com/forums/topic/preview-and-confirmation-pages-within-a-frame#post-4939</link>
<pubDate>Sat, 07 Mar 2009 01:25:34 +0000</pubDate>
<dc:creator>denis</dc:creator>
<guid isPermaLink="false">4939@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi&#60;/p&#62;
&#60;p&#62;I have indeed replaced it in that page, and even wherever I found top.location it was replaced by parent.location, but still the final page breaks out of the frame !&#60;br /&#62;
I wish I could change the page altogether but I cannot change the site for now, any idea what I missed ?&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Preview and confirmation pages within a frame"</title>
<link>https://www.machform.com/forums/topic/preview-and-confirmation-pages-within-a-frame#post-4730</link>
<pubDate>Thu, 19 Feb 2009 15:59:08 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">4730@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Try this, edit your &#60;strong&#62;embed.php&#60;/strong&#62;, go to line 45.&#60;br /&#62;
Search for this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;echo &#38;quot;&#38;lt;script type=\&#38;quot;text/javascript\&#38;quot;&#38;gt;top.location = &#38;#39;{$submit_result[&#38;#39;form_redirect&#38;#39;]}&#38;#39;&#38;lt;/script&#38;gt;&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;replace it with this one:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;echo &#38;quot;&#38;lt;script type=\&#38;quot;text/javascript\&#38;quot;&#38;gt;parent.location = &#38;#39;{$submit_result[&#38;#39;form_redirect&#38;#39;]}&#38;#39;&#38;lt;/script&#38;gt;&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;so instead of &#34;top.location&#34;, you are using &#34;parent.location&#34; now.&#60;/p&#62;
&#60;p&#62;if you have &#34;form review&#34; enabled, you need to do the same modification to &#60;strong&#62;confirm_embed.php&#60;/strong&#62; file as well.
&#60;/p&#62;</description>
</item>
<item>
<title>denis on "Preview and confirmation pages within a frame"</title>
<link>https://www.machform.com/forums/topic/preview-and-confirmation-pages-within-a-frame#post-4725</link>
<pubDate>Thu, 19 Feb 2009 04:02:11 +0000</pubDate>
<dc:creator>denis</dc:creator>
<guid isPermaLink="false">4725@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi&#60;/p&#62;
&#60;p&#62;I just finished generating test forms which seems to work fine, but give me the annoying issue that they seem to break out of frames ? The way the site I'm working on was set, its main page calls sub section within a central frame. Bad design for sure, but I cannot change it right now, hence my forms are called in a frame below the site navigation. However apparently the confirmation page after a form submit seems to refresh the page and display the confirmation page only, by breaking out of the frame ? I tried adding a review page and it seems to do the same.&#60;br /&#62;
Can this be avoided as it prevents me from using macform !&#60;br /&#62;
Regards.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
