<?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: swap string characters?</title><link>https://www.infopathdev.com:443/forums/thread/88928.aspx</link><pubDate>Mon, 15 Apr 2013 14:46:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88928</guid><dc:creator>HHearle</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88928.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=88928</wfw:commentRss><description>&lt;p&gt;Ah- found it! Just what I was looking for, thanks!&amp;nbsp; Sorry about that, like I said pretty new to all of this but thank you so much!&lt;/p&gt;</description></item><item><title>Re: swap string characters?</title><link>https://www.infopathdev.com:443/forums/thread/88927.aspx</link><pubDate>Mon, 15 Apr 2013 14:38:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88927</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88927.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=88927</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;The translate function is a built in InfoPath &lt;a href="http://office.microsoft.com/en-us/infopath-help/functions-in-infopath-HP001155281.aspx"&gt;function&lt;/a&gt;. No code / script needed - you could use a rule for this. &lt;/p&gt;</description></item><item><title>Re: swap string characters?</title><link>https://www.infopathdev.com:443/forums/thread/88921.aspx</link><pubDate>Mon, 15 Apr 2013 07:22:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88921</guid><dc:creator>HHearle</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88921.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=88921</wfw:commentRss><description>&lt;p&gt;Hi Hilary,&lt;/p&gt;
&lt;p&gt;Well trouble is I don&amp;#39;t have Visual Studio at work- the administrators worry about the security of it....&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;m pretty new to&amp;nbsp;code, could you explain how to use the translate function?&amp;nbsp; I&amp;#39;m using Microsoft Script Editor 7&lt;/p&gt;</description></item><item><title>Re: swap string characters?</title><link>https://www.infopathdev.com:443/forums/thread/88910.aspx</link><pubDate>Sat, 13 Apr 2013 15:46:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88910</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88910.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=88910</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;What about just using the translate function for this? Of course - if you do that and someone opens the form template, they will be able to see the formula and break the &amp;quot;code&amp;quot; such as it is. But they can also save the form as source files and read your .js file at that rate - so using js for this is only slightly better. Can you use managed code? That is, do you have Visual Studio? Then you could use some actual encryption.&lt;/p&gt;</description></item><item><title>swap string characters?</title><link>https://www.infopathdev.com:443/forums/thread/88815.aspx</link><pubDate>Wed, 10 Apr 2013 13:22:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88815</guid><dc:creator>HHearle</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88815.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=88815</wfw:commentRss><description>&lt;p&gt;Hi, I&amp;#39;m using InfoPath 2003 (company hasn&amp;#39;t bothered to upgrade yet :( ) and I&amp;#39;m experimenting with ways to encrypt passwords typed out on a form.&amp;nbsp; I want to be able to write a JavaScript code that will scramble the letters filled out in a text box when a user clicks a button.&amp;nbsp; I&amp;#39;m pretty new to writing code, my only experience being SendKeys and a few website codes to disable right-clicks, but I was thinking in principal it would maybe be something like&lt;/p&gt;
&lt;p&gt;&amp;nbsp;if character = &amp;quot;a&amp;quot;&lt;/p&gt;
&lt;p&gt;return &amp;quot;b&amp;quot; &lt;/p&gt;
&lt;p&gt;or something like that- I know that that&amp;#39;s not right but that is the sort of thing I am trying to achieve.&amp;nbsp; Any help much appreciated.&lt;/p&gt;</description></item></channel></rss>