<?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: Link to an external script file</title><link>https://www.infopathdev.com:443/forums/thread/13158.aspx</link><pubDate>Mon, 28 Feb 2005 22:28:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13158</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13158.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13158</wfw:commentRss><description>Glad to hear you got it working!!&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]</description></item><item><title>Re: Link to an external script file</title><link>https://www.infopathdev.com:443/forums/thread/13157.aspx</link><pubDate>Mon, 28 Feb 2005 06:24:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13157</guid><dc:creator>Matthew</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13157.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13157</wfw:commentRss><description>Greg, many thanks for your suggestions - I've tried it and it works like a charm.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Matthew&lt;br /&gt;Telstra Australia</description></item><item><title>Re: Link to an external script file</title><link>https://www.infopathdev.com:443/forums/thread/13156.aspx</link><pubDate>Tue, 22 Feb 2005 23:11:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13156</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13156.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13156</wfw:commentRss><description>You cannot point to an "External" script file, BUT you can have a common script file that does NOT need to be pasted into your script.js file. The basic steps are as follows:&lt;br /&gt;&lt;br /&gt;    1. Create your aux. script file.&lt;br /&gt;    2. Add your aux. script file as a resource.&lt;br /&gt;    3. Extract form files, and then edit the manifest.xsf.&lt;br /&gt;    4. Locate the &amp;lt;xsf:scripts&amp;gt; block, and then add your aux. script file to the list.&lt;br /&gt;    NOTE: If you don't find the xsf:scripts file, then you haven't actually created script.js yet.&lt;br /&gt;&lt;br /&gt;Now you can access functions from the aux. script file as if they were internal to script.js.&lt;br /&gt;Granted, this still is not a shared script file, but its a whole lot closer than what you've been doing.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]</description></item><item><title>Link to an external script file</title><link>https://www.infopathdev.com:443/forums/thread/12426.aspx</link><pubDate>Fri, 18 Feb 2005 00:37:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12426</guid><dc:creator>Matthew</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12426.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12426</wfw:commentRss><description>Guys &amp; Gals,&lt;br /&gt;&lt;br /&gt;I am programming in JScript.&lt;br /&gt;&lt;br /&gt;I have the script.js file with various events in it that InfoPath provides.  There are common functions I wish to envoke that I'd like to store in another file (myscript.js).  I have created myscript.js and added it as resource in InfoPath.&lt;br /&gt;&lt;br /&gt;Q. If myscript.js has a function (saveMyFile(XDocument)) - how can I call it from within my event code help in script.js &lt;br /&gt;&lt;br /&gt;Many thanks,&lt;br /&gt;Matthew.</description></item></channel></rss>