<?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"
	>
<channel>
	<title>Comments on: Auto-splitting text between two text fields</title>
	<atom:link href="http://forms.stefcameron.com/2008/07/10/auto-splitting-text-between-two-text-fields/feed/" rel="self" type="application/rss+xml" />
	<link>http://forms.stefcameron.com/2008/07/10/auto-splitting-text-between-two-text-fields/</link>
	<description>Building intelligent forms using Adobe LiveCycle Designer</description>
	<pubDate>Sat, 22 Nov 2008 22:28:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2008/07/10/auto-splitting-text-between-two-text-fields/#comment-32271</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Thu, 30 Oct 2008 13:44:46 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2008/07/10/auto-splitting-text-between-two-text-fields/#comment-32271</guid>
		<description>neptas,

Form Guides are designed to execute your form in a Flash environment and mirror what is done in the PDF because you might decide to deploy a form as a Form Guide without the PDF behind it. The catch is that Form Guides (and HTML forms) operate on the &lt;a href="http://help.adobe.com/en_US/livecycle/8.2/fgscriptsupport.pdf" rel="nofollow"&gt;XFA Subset&lt;/a&gt; which means that you don't have access to &lt;i&gt;all&lt;/i&gt; the APIs which you can access when your script executes in Acrobat/Reader.

If you need to write scripts that use more than the subset in order to do special things only in the PDF, you need to "protect" that code with a check to ensure it executes only in the context of the PDF. You can do this by checking the value of the xfa.host.name property. If it's "Flash", then your in the context of the Form Guide. Otherwise, you're in the PDF:

&lt;pre&gt;&lt;code&gt;if (xfa.host.name != "Flash")
{
    // do the PDF-only/full-XFA stuff...
}&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>neptas,</p>
<p>Form Guides are designed to execute your form in a Flash environment and mirror what is done in the PDF because you might decide to deploy a form as a Form Guide without the PDF behind it. The catch is that Form Guides (and HTML forms) operate on the <a href="http://help.adobe.com/en_US/livecycle/8.2/fgscriptsupport.pdf" rel="nofollow">XFA Subset</a> which means that you don&#8217;t have access to <i>all</i> the APIs which you can access when your script executes in Acrobat/Reader.</p>
<p>If you need to write scripts that use more than the subset in order to do special things only in the PDF, you need to &#8220;protect&#8221; that code with a check to ensure it executes only in the context of the PDF. You can do this by checking the value of the xfa.host.name property. If it&#8217;s &#8220;Flash&#8221;, then your in the context of the Form Guide. Otherwise, you&#8217;re in the PDF:</p>
<pre><code>if (xfa.host.name != "Flash")
{
    // do the PDF-only/full-XFA stuff...
}</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: neptas</title>
		<link>http://forms.stefcameron.com/2008/07/10/auto-splitting-text-between-two-text-fields/#comment-31936</link>
		<dc:creator>neptas</dc:creator>
		<pubDate>Fri, 24 Oct 2008 00:16:51 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2008/07/10/auto-splitting-text-between-two-text-fields/#comment-31936</guid>
		<description>Hello Stefan,

I was wondereing if you can help me on this (it´s about form guides, but not directly related with this scenario).
Before using form guides, and because I knew that I could have a pdf inside it and formguide would make a mapping of value fileds into it, I thought I could use formguides to fill-in the form and execute any normal java script inside the form at the same time.

However, it seems that the script will run inside the flash context. For instance, if I have a replace javascript function inside a change filed event, when I had a value to that field in a formguide, the change event will be fired. However, the replace function will throw an error. What functions can we use?
Another example, if I have a floating field in a pdf, the form guide will do the mapping of the vlaue to the field, however, if I do a xfa.layout,.relayout, formguide will throw an error. BUT the floating field will actually work... Why I get such behavior? If this actually work in the PDF (making a preview from formguide) why we get this error?

thank you</description>
		<content:encoded><![CDATA[<p>Hello Stefan,</p>
<p>I was wondereing if you can help me on this (it´s about form guides, but not directly related with this scenario).<br />
Before using form guides, and because I knew that I could have a pdf inside it and formguide would make a mapping of value fileds into it, I thought I could use formguides to fill-in the form and execute any normal java script inside the form at the same time.</p>
<p>However, it seems that the script will run inside the flash context. For instance, if I have a replace javascript function inside a change filed event, when I had a value to that field in a formguide, the change event will be fired. However, the replace function will throw an error. What functions can we use?<br />
Another example, if I have a floating field in a pdf, the form guide will do the mapping of the vlaue to the field, however, if I do a xfa.layout,.relayout, formguide will throw an error. BUT the floating field will actually work&#8230; Why I get such behavior? If this actually work in the PDF (making a preview from formguide) why we get this error?</p>
<p>thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2008/07/10/auto-splitting-text-between-two-text-fields/#comment-28129</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Wed, 03 Sep 2008 13:46:01 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2008/07/10/auto-splitting-text-between-two-text-fields/#comment-28129</guid>
		<description>Sergey,

Unfortunately not. There just isn't enough font information available via APIs at your disposal in order to compute the correct character width on a per-character basis for a particular font, which is basically what the algorithm would need to do.</description>
		<content:encoded><![CDATA[<p>Sergey,</p>
<p>Unfortunately not. There just isn&#8217;t enough font information available via APIs at your disposal in order to compute the correct character width on a per-character basis for a particular font, which is basically what the algorithm would need to do.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergey</title>
		<link>http://forms.stefcameron.com/2008/07/10/auto-splitting-text-between-two-text-fields/#comment-27433</link>
		<dc:creator>Sergey</dc:creator>
		<pubDate>Wed, 27 Aug 2008 15:20:36 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2008/07/10/auto-splitting-text-between-two-text-fields/#comment-27433</guid>
		<description>Is there some algorithm for variable font width to do the same split?</description>
		<content:encoded><![CDATA[<p>Is there some algorithm for variable font width to do the same split?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
