<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="0.91">
    <channel>
        <title>JavaScript wait command ?</title>
        <description>The 10 most recently added comments in the topic &quot;JavaScript wait command ?&quot;</description>
        <link>http://www.freewaytalk.net/</link>
        <lastBuildDate>Sat, 04 Feb 2012 10:39:56 -500</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>Re: JavaScript wait command ?</title>
            <link>http://www.freewaytalk.net/thread/view/66241#m_66253</link>
            <description>&lt;p&gt;You have to set a variable to hold your function, or wrap the function in an anonymous function, then wrap the whole thing in setTimeout().&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var foo = function(){
    //Do something;
};
window.setTimeout(foo,100);
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;or&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;window.setTimeout(function(){
    //hello world
},100);
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Walter&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;actionsdev mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>waltd</author>
            <pubDate>Sun, 28 Feb 2010 00:46:50 -500</pubDate>
        </item>
        <item>
            <title>Re: JavaScript wait command ?</title>
            <link>http://www.freewaytalk.net/thread/view/66241#m_66247</link>
            <description>&lt;p&gt;Thank you. Then I&amp;#8217;ll use it.&lt;/p&gt;

&lt;p&gt;Tobias.&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;actionsdev mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>tobiaseichner</author>
            <pubDate>Sat, 27 Feb 2010 20:22:23 -500</pubDate>
        </item>
        <item>
            <title>Re: JavaScript wait command ?</title>
            <link>http://www.freewaytalk.net/thread/view/66241#m_66245</link>
            <description>&lt;p&gt;I&amp;#8217;m pretty sure timeout() is the equivalent of Perl&amp;#8217;s sleep(). It&amp;#8217;s a dedicated function built into the API so is likely be the most efficient solution.&lt;/p&gt;

&lt;p&gt;Joe&lt;/p&gt;

&lt;p&gt;On 27 Feb 2010, at 18:51, tobiaseichner wrote:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;For a small JavaScript app I look for a way to interrupt code execution a few seconds till proceeding. For example:&lt;/p&gt;
  
  &lt;p&gt;&amp;lt;code&amp;gt;
  &amp;#8230;
  document.forms[0].elements[&amp;#8220;result&amp;#8221;].value = &amp;#8220;Anything is okay. Proceeding&amp;#8221;;
  return true;
  &amp;lt;/code&amp;gt;&lt;/p&gt;
  
  &lt;p&gt;Between these two commands the script should wait two seconds giving the user the chance to read the text.&lt;/p&gt;
  
  &lt;p&gt;I thought about adding a timeout, but maybe there is a more elegant solution (like &amp;#8220;sleep&amp;#8221; in Perl) ?&lt;/p&gt;
  
  &lt;p&gt;But even after having a close look at my reference books, I haven&amp;#8217;t found something.&lt;/p&gt;
  
  &lt;p&gt;Tobias.&lt;/p&gt;
  
  &lt;hr /&gt;
  
  &lt;p&gt;actionsdev mailing list
  email@hidden
  Update your subscriptions at:
  &lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;hr /&gt;

&lt;p&gt;actionsdev mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>Joe Billings</author>
            <pubDate>Sat, 27 Feb 2010 19:32:38 -500</pubDate>
        </item>
        <item>
            <title>JavaScript wait command ?</title>
            <link>http://www.freewaytalk.net/thread/view/66241</link>
            <description>&lt;p&gt;For a small JavaScript app I look for a way to interrupt code execution a few seconds till proceeding. For example:&lt;/p&gt;

&lt;p&gt;&amp;lt;code&amp;gt;
&amp;#8230;
document.forms[0].elements[&amp;#8220;result&amp;#8221;].value = &amp;#8220;Anything is okay. Proceeding&amp;#8221;;
return true;
&amp;lt;/code&amp;gt;&lt;/p&gt;

&lt;p&gt;Between these two commands the script should wait two seconds giving the user the chance to read the text.&lt;/p&gt;

&lt;p&gt;I thought about adding a timeout, but maybe there is a more elegant solution (like &amp;#8220;sleep&amp;#8221; in Perl) ?&lt;/p&gt;

&lt;p&gt;But even after having a close look at my reference books, I haven&amp;#8217;t found something.&lt;/p&gt;

&lt;p&gt;Tobias.&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;actionsdev mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>tobiaseichner</author>
            <pubDate>Sat, 27 Feb 2010 18:51:19 -500</pubDate>
        </item>
    </channel>
</rss>

