<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font face="Georgia">I'm not sure why you want to create the
      periodical before you need it to run, but this seems to do what
      you wanted:<br>
      <br>
      renderContentOn: html<br>
      <br>
      &nbsp;&nbsp;&nbsp; html div <br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; script: ((html scriptaculous periodical)<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; frequency: 1;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; on: #renderNextImageOn: of: self;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; assignTo: 'FLPer'<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ), (<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; html prototype script add: (JSStream new<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; nextPutAll: 'FLPer.stop();';<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; yourself)<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; );<br>
      <br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: [html text: 'this is a test'].<br>
      &nbsp;&nbsp;&nbsp; html div&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; onClick: ('FLPer.start();');<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: 'start me'.<br>
      &nbsp;&nbsp;&nbsp; html div&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; onClick: ('FLPer.stop();');<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: 'stop me'.<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
      Cheers,<br>
      Bob<br>
    </font><br>
    On 10/9/11 12:22 PM, squeakman wrote:
    <blockquote cite="mid:j6shnr$b4q$1@dough.gmane.org" type="cite">That
      is exactly what I tried (in addition to the "evalScripts: false")
      but it seems that the Periodical is always triggered once
      initially. What I observed is that it is triggered once on
      creation.
      <br>
      <br>
      Below is the code I tried to initially turn it off - but seemingly
      to no avail.
      <br>
      <br>
      &gt;&gt; html script: ((html scriptaculous periodical)
      <br>
      &gt;&gt; id: self domId;
      <br>
      &gt;&gt; frequency: 5;
      <br>
      &gt;&gt; on: self triggerMethod of: self parent;
      <br>
      &gt;&gt; evalScripts: false;
      <br>
      &gt;&gt; assignTo: 'FLPer').
      <br>
      <br>
      html script: 'FLPer.stop();'.&nbsp;&nbsp;&nbsp; "turn off initially"
      <br>
      <br>
      <br>
      And, as an aside, shouldn't the evalScripts: false result in it
      not running or is my understanding incorrect?
      <br>
      <br>
      Thanks for your help,
      <br>
      Frank
      <br>
      <br>
      On 09/10/2011 11:28 AM, Sebastian Sastre wrote:
      <br>
      <blockquote type="cite">put it in a variable and stop it just
        after creating it.
        <br>
        that way, it never executes until you tell it to start again
        <br>
        <br>
        <br>
        <br>
        <br>
        On Oct 9, 2011, at 12:03 PM, squeakman wrote:
        <br>
        <br>
        <blockquote type="cite">Hello,
          <br>
          <br>
          Is there any way to setup a periodical but not have it running
          initially?
          <br>
          <br>
          I guessed that using "evalScripts: false" would result in the
          script
          <br>
          not being executed but that did not work.
          <br>
          <br>
          Here is the code that I am using:
          <br>
          <br>
          html script: ((html scriptaculous periodical)
          <br>
          id: self domId;
          <br>
          frequency: 5;
          <br>
          on: self triggerMethod of: self parent;
          <br>
          evalScripts: false;
          <br>
          assignTo: 'FLPer').
          <br>
          <br>
          <br>
          What I want to do is have the script assigned to the
          javascript
          <br>
          variable "FLPer" but not have it executed until a later time.
          <br>
          <br>
          Thanks for any help you can provide,
          <br>
          <br>
          Frank
          <br>
          <br>
          _______________________________________________
          <br>
          seaside mailing list
          <br>
          <a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
          <br>
          <a class="moz-txt-link-rfc2396E" href="mailto:seaside@lists.squeakfoundation.org">&lt;mailto:seaside@lists.squeakfoundation.org&gt;</a>
          <br>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
          <br>
        </blockquote>
        <br>
        sebastian <a class="moz-txt-link-rfc2396E" href="http://about.me/sebastianconcept">&lt;http://about.me/sebastianconcept&gt;</a>
        <br>
        <br>
        o/
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        _______________________________________________
        <br>
        seaside mailing list
        <br>
        <a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
        <br>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
        <br>
      </blockquote>
      <br>
      <br>
      _______________________________________________
      <br>
      seaside mailing list
      <br>
      <a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
      <br>
      <a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
      <br>
      <br>
    </blockquote>
  </body>
</html>