<?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: From Managed Code back to script mode</title><link>https://www.infopathdev.com:443/forums/thread/13851.aspx</link><pubDate>Mon, 31 Oct 2005 01:34:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13851</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13851.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13851</wfw:commentRss><description>Yep, it is now, but it wasn't working for a couple of days.</description></item><item><title>Re: From Managed Code back to script mode</title><link>https://www.infopathdev.com:443/forums/thread/13850.aspx</link><pubDate>Mon, 31 Oct 2005 00:13:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13850</guid><dc:creator>vt_asparagus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13850.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13850</wfw:commentRss><description>The link seems to be working for me right now.</description></item><item><title>Re: From Managed Code back to script mode</title><link>https://www.infopathdev.com:443/forums/thread/13849.aspx</link><pubDate>Fri, 28 Oct 2005 18:39:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13849</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13849.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13849</wfw:commentRss><description>Yes, probably. Here is a code snippet from the very top of my JScript file. You MUST declare your namespaces and reference them any time you are using XPath in any function or anything else, at least from my experience.  Anyway the xmlns:xsi and xmlns:xd are standard and should be included in your file. The other namespaces can be found by double-clicking on a control and going to the "advanced" tab. You should find the namespace there.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;// The following line is created by Microsoft Office InfoPath to define the prefixes&lt;br /&gt;// for all the known namespaces in the main XML data file.&lt;br /&gt;// Any modification to the form files made outside of InfoPath&lt;br /&gt;// will not be automatically updated.&lt;br /&gt;//&amp;lt;namespacesDefinition&amp;gt;&lt;br /&gt;XDocument.DOM.setProperty("SelectionNamespaces", 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="http://www.w3.org/1999/xhtml" xmlns:ns1="http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-08-22T14:26:27" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-08-23T19:14:40" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003"');&lt;br /&gt;//&amp;lt;/namespacesDefinition&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If all else fails, you could copy all your JScript code from you .js file, put it in notepad for a second, extract your form to files, delete the .js file there, re-publish into XSN and then go to Tools -&amp;gt; Programming -&amp;gt; Microsoft Script Editor. This should get you back to an original .js file with all the MS auto-generated stuff in it.&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;</description></item><item><title>Re: From Managed Code back to script mode</title><link>https://www.infopathdev.com:443/forums/thread/13848.aspx</link><pubDate>Fri, 28 Oct 2005 14:34:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13848</guid><dc:creator>amek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13848.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13848</wfw:commentRss><description>If I do like the instructions above then I can't reach the nodes in my DOM.&lt;br /&gt;selectSingleNode always return null.&lt;br /&gt;Is it something with SelectionNamespaces?</description></item><item><title>Re: From Managed Code back to script mode</title><link>https://www.infopathdev.com:443/forums/thread/13847.aspx</link><pubDate>Fri, 28 Oct 2005 14:32:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13847</guid><dc:creator>amek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13847.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13847</wfw:commentRss><description>The link above doesn't work! &lt;br /&gt;Server Application Unavailable</description></item><item><title>Re: From Managed Code back to script mode</title><link>https://www.infopathdev.com:443/forums/thread/13846.aspx</link><pubDate>Tue, 25 Oct 2005 19:31:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13846</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13846.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13846</wfw:commentRss><description>Didn't know you had posted that.  Would have referenced yours (would have been easier and faster)...&lt;br /&gt;Cheers&lt;br /&gt;&lt;br /&gt;Franck</description></item><item><title>Re: From Managed Code back to script mode</title><link>https://www.infopathdev.com:443/forums/thread/13845.aspx</link><pubDate>Tue, 25 Oct 2005 18:43:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13845</guid><dc:creator>vt_asparagus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13845.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13845</wfw:commentRss><description>I have posted this before, check out this article as well. &lt;a target="_blank" href=http://www.kbalertz.com/kb_828853.aspx&gt;http://www.kbalertz.com/kb_828853.aspx&lt;/a&gt;</description></item><item><title>Re: From Managed Code back to script mode</title><link>https://www.infopathdev.com:443/forums/thread/13844.aspx</link><pubDate>Tue, 25 Oct 2005 17:58:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13844</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13844.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13844</wfw:commentRss><description>Hi, &lt;br /&gt;&lt;br /&gt;yes you can...&lt;br /&gt;Create a blank IP project with scripting.  Extract the files.  Copy the 2 .js files.&lt;br /&gt;Copy your xsn (generated with VS.Net) into a folder.  Extract the files and copy the 2 .js files from above.&lt;br /&gt;Next, open your manifest.xsf and do the following:&lt;br /&gt;&lt;br /&gt;replace:&lt;br /&gt;&amp;lt;xsf:file name="InfoPathProject1.dll"&amp;gt;&lt;br /&gt;  &amp;lt;xsf:fileProperties&amp;gt;&lt;br /&gt;    &amp;lt;xsf:property name="fileType" type="string" value="rootAssembly"&amp;gt;&amp;lt;/xsf:property&amp;gt;&lt;br /&gt;  &amp;lt;/xsf:fileProperties&amp;gt;&lt;br /&gt;&amp;lt;/xsf:file&amp;gt;&lt;br /&gt;by:&lt;br /&gt;&amp;lt;xsf:file name="script.js"&amp;gt;&lt;br /&gt;  &amp;lt;xsf:fileProperties&amp;gt;&lt;br /&gt;    &amp;lt;xsf:property name="scriptType" type="string" value="userEvents"&amp;gt;&amp;lt;/xsf:property&amp;gt;&lt;br /&gt;  &amp;lt;/xsf:fileProperties&amp;gt;&lt;br /&gt;&amp;lt;/xsf:file&amp;gt;&lt;br /&gt;&amp;lt;xsf:file name="internal.js"&amp;gt;&lt;br /&gt;  &amp;lt;xsf:fileProperties&amp;gt;&lt;br /&gt;    &amp;lt;xsf:property name="scriptType" type="string" value="internal"&amp;gt;&amp;lt;/xsf:property&amp;gt;&lt;br /&gt;  &amp;lt;/xsf:fileProperties&amp;gt;&lt;br /&gt;&amp;lt;/xsf:file&amp;gt;&lt;br /&gt;&lt;br /&gt;At the end of the manifest, replace:&lt;br /&gt;&amp;lt;/xsf:xDocumentClass&amp;gt;&lt;br /&gt;by:&lt;br /&gt;&amp;lt;xsf:scripts language="jscript"&amp;gt;&lt;br /&gt;  &amp;lt;xsf:script src="internal.js"&amp;gt;&amp;lt;/xsf:script&amp;gt;&lt;br /&gt;    &amp;lt;xsf:script src="script.js"&amp;gt;&amp;lt;/xsf:script&amp;gt;&lt;br /&gt;  &amp;lt;/xsf:scripts&amp;gt;&lt;br /&gt;&amp;lt;/xsf:xDocumentClass&amp;gt;&lt;br /&gt;&lt;br /&gt;Next, save your xsn back. &lt;br /&gt;&lt;br /&gt;and Voila....&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché</description></item><item><title>From Managed Code back to script mode</title><link>https://www.infopathdev.com:443/forums/thread/12638.aspx</link><pubDate>Tue, 25 Oct 2005 11:49:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12638</guid><dc:creator>amek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12638.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12638</wfw:commentRss><description>I would like to change code mode in a InfoPath form from Managed C# code to original script mode/code.&lt;br /&gt;Is it possible and does anyone know how to do this? Of course the code have to be translated ;-)&lt;br /&gt;The form have rich design and I don't like the idéa to start all over...</description></item></channel></rss>