<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Zaphod &#8211; betterFORM As Service (Cross Context Environment)</title>
	<atom:link href="http://betterform.wordpress.com/zaphod-betterform-as-service-cross-context-environment/feed/" rel="self" type="application/rss+xml" />
	<link>http://betterform.wordpress.com</link>
	<description>the XForms way to build the web</description>
	<lastBuildDate>Thu, 04 Apr 2013 03:07:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Farah Zareen</title>
		<link>http://betterform.wordpress.com/zaphod-betterform-as-service-cross-context-environment/#comment-1154</link>
		<dc:creator><![CDATA[Farah Zareen]]></dc:creator>
		<pubDate>Thu, 04 Apr 2013 03:07:14 +0000</pubDate>
		<guid isPermaLink="false">http://betterform.wordpress.com/?page_id=476#comment-1154</guid>
		<description><![CDATA[Hi,

We are trying to use Betterform Zaphod to convert our Betterforms XForms into HTML. I am having an issue here - I am initially on a page with URI: /forms/home which has few submit buttons, each with a different resource-uri. method=&quot;get&quot;, and submission replace=&quot;all&quot;. When i click a button from &quot;/forms/home&quot;, i submit a &quot;GET&quot; request to a resource-uri called &quot;/forms/getProfile&quot;and get an xForms response back. But, betterForm-Full.js seems to be handling replace=&quot;all&#039; by invoking fluxProcessor._handleBetterFormReplaceAll() that does a: window.open(window.location.href, &quot;_self&quot;);

In my case, window.location.href will be /forms/home, but i need to submit a request to /forms/getProfile. Since it is trying to send request to location.href, i am getting incorrect response back. So, i have a few questions here:

1. Why is it trying to submit to window.location.href. Based on the application, window.location.href could be different from the action/resource-uri the user wants to submit the request to.

2. Why is it making this second request to window.location.href when the first request on submit actually gets the response back? This is causing my application to make two requests - first one to the resource-uri of the submitted target (button clicked), and other through window.open(window.location.href, _self)

3. Is there a way to avoid this second request, if not how can i override window.location.href with the resource-uri of the button i clicked

Any responses would be appreciated.

Thanks,

Arshad]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>We are trying to use Betterform Zaphod to convert our Betterforms XForms into HTML. I am having an issue here &#8211; I am initially on a page with URI: /forms/home which has few submit buttons, each with a different resource-uri. method=&#8221;get&#8221;, and submission replace=&#8221;all&#8221;. When i click a button from &#8220;/forms/home&#8221;, i submit a &#8220;GET&#8221; request to a resource-uri called &#8220;/forms/getProfile&#8221;and get an xForms response back. But, betterForm-Full.js seems to be handling replace=&#8221;all&#8217; by invoking fluxProcessor._handleBetterFormReplaceAll() that does a: window.open(window.location.href, &#8220;_self&#8221;);</p>
<p>In my case, window.location.href will be /forms/home, but i need to submit a request to /forms/getProfile. Since it is trying to send request to location.href, i am getting incorrect response back. So, i have a few questions here:</p>
<p>1. Why is it trying to submit to window.location.href. Based on the application, window.location.href could be different from the action/resource-uri the user wants to submit the request to.</p>
<p>2. Why is it making this second request to window.location.href when the first request on submit actually gets the response back? This is causing my application to make two requests &#8211; first one to the resource-uri of the submitted target (button clicked), and other through window.open(window.location.href, _self)</p>
<p>3. Is there a way to avoid this second request, if not how can i override window.location.href with the resource-uri of the button i clicked</p>
<p>Any responses would be appreciated.</p>
<p>Thanks,</p>
<p>Arshad</p>
]]></content:encoded>
	</item>
</channel>
</rss>
