<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Include Statement in Javascript</title><link>https://www.infopathdev.com:443/forums/thread/69540.aspx</link><pubDate>Tue, 23 Aug 2011 06:21:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69540</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69540.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=69540</wfw:commentRss><description>&lt;p&gt;Well, to the best of my knowledge this is not doable with JScript.&amp;nbsp; I would suggest pursuing either (a) Using a web service to provide this functionality if it&amp;#39;s something like performing calculations, or (b) Looking into using managed code (C# or VB.NET), which will allow you to have multiple code files in your solution, including a common one that&amp;#39;s chared between forms.&amp;nbsp; You could even create a compiled DLL with all the constants and functions that you need, and share that between your forms.&lt;/p&gt;</description></item><item><title>Re: Include Statement in Javascript</title><link>https://www.infopathdev.com:443/forums/thread/69515.aspx</link><pubDate>Mon, 22 Aug 2011 16:09:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69515</guid><dc:creator>Erich</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69515.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=69515</wfw:commentRss><description>&lt;p&gt;Jimmy, thanks for the quick reply but&amp;nbsp;I forgot to mention, in addition to the variables there are also several functions that are used in all the forms, which would also be nice to manage centrally.. &lt;/p&gt;</description></item><item><title>Re: Include Statement in Javascript</title><link>https://www.infopathdev.com:443/forums/thread/69502.aspx</link><pubDate>Mon, 22 Aug 2011 15:13:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69502</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69502.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=69502</wfw:commentRss><description>&lt;p&gt;I have looked into this in the past, but to the best of my knowledge there isn&amp;#39;t a way to do this.&amp;nbsp; Might I suggest putting these values in some centralized location (e.g. a SharePoint list, webservice, or XML file&amp;nbsp;secondary data source - the first two would be better than the third), where you can easily manage and change these values?&lt;/p&gt;</description></item><item><title>Include Statement in Javascript</title><link>https://www.infopathdev.com:443/forums/thread/69494.aspx</link><pubDate>Mon, 22 Aug 2011 13:30:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69494</guid><dc:creator>Erich</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69494.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=69494</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Is there a way to have an include statement like in C (#include &amp;lt;otherscript.c&amp;gt;) in the script of a form template?&lt;/p&gt;
&lt;p&gt;The reason for&amp;nbsp;wanting this is that&amp;nbsp;there are global variables defined that are used for several forms and they may require frequent change..&lt;/p&gt;
&lt;p&gt;Erich&lt;/p&gt;</description></item></channel></rss>