<?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: Set time with jscript</title><link>https://www.infopathdev.com:443/forums/thread/30075.aspx</link><pubDate>Thu, 03 Jul 2008 13:39:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30075</guid><dc:creator>Dromont</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30075.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=30075</wfw:commentRss><description>&lt;p&gt;I find the error:&lt;br /&gt;without this &amp;quot; if (m&amp;lt;10) { var m = &amp;quot;0&amp;quot;+m; }&amp;quot; it works!!! &lt;/p&gt;
&lt;p&gt;Just another question: Whats happend if I dont&amp;nbsp; put again the nil attribute? What I have to do for replace it?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Set time with jscript</title><link>https://www.infopathdev.com:443/forums/thread/30072.aspx</link><pubDate>Thu, 03 Jul 2008 09:54:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30072</guid><dc:creator>Dromont</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30072.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=30072</wfw:commentRss><description>&lt;p&gt;The format date is &amp;quot;9:46&amp;quot;. And, as you can see from the code, my string is &amp;quot;h:mm&amp;quot;... &lt;/p&gt;</description></item><item><title>Re: Set time with jscript</title><link>https://www.infopathdev.com:443/forums/thread/30069.aspx</link><pubDate>Thu, 03 Jul 2008 09:35:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30069</guid><dc:creator>bogdantc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30069.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=30069</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;check the date format of the field in design and set it to your needs ...&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Set time with jscript</title><link>https://www.infopathdev.com:443/forums/thread/30067.aspx</link><pubDate>Thu, 03 Jul 2008 06:54:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30067</guid><dc:creator>Dromont</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30067.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=30067</wfw:commentRss><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;I have a question for you. In my form I have a time field (OreTotali)&amp;nbsp;that I would like to fill with jscript code. I set the time that I want to display with this code:&lt;/p&gt;&lt;pre&gt;c.setTime(vsot)&lt;br /&gt;var h = c.getUTCHours();
var m = c.getUTCMinutes();
if (m&amp;lt;10) { var m = &amp;quot;0&amp;quot;+m; }
var oraintervento = h+&amp;quot;:&amp;quot;+m
var sc87 = nodo.selectSingleNode(&amp;quot;my:OreTotali&amp;quot;);
if (sc87.getAttribute(&amp;quot;xsi:nil&amp;quot;))
{ sc87.removeAttribute(&amp;quot;xsi:nil&amp;quot;); }
sc87.text = oraintervento;&lt;/pre&gt;&lt;pre&gt;In the field appears the right value but the problem is that around the field there is the red dashed border and so I cant submit the form.&lt;br /&gt;What I have to do for set the field &amp;quot;OreTotali&amp;quot; by jscript?&lt;/pre&gt;&lt;pre&gt;Thank you&lt;br /&gt;&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;</description></item></channel></rss>