<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font face="Georgia">Well, that seems easier...<br>
      <br>
      renderContentOn: html<br>
      <br>
      &nbsp;&nbsp;&nbsp; html div <br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; onClick: ((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>
      <br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: [html text: 'click to start'].<br>
      <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: 'click to stop'.<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
      Cheers,<br>
      Bob<br>
    </font><br>
    On 10/9/11 3:57 PM, squeakman wrote:
    <blockquote cite="mid:j6suah$p1g$1@dough.gmane.org" type="cite">On
      09/10/2011 2:37 PM, Bob Arning wrote:
      <br>
      <blockquote type="cite">I'm not sure why you want to create the
        periodical before you need it to
        <br>
        run
        <br>
        <br>
      </blockquote>
      <br>
      Hi Bob,
      <br>
      <br>
      I have a "Play" button that when hit will display a series of
      images one per x seconds.&nbsp; I want to use the periodical to trigger
      a new image every x seconds.
      <br>
      <br>
      I want to do this using Ajax - when the "Play" button is hit I
      have an Ajax callback that on the first invocation, sets up the
      Periodical.&nbsp; My problem is that I cannot figure out how to setup
      the periodical in an Ajax callback.
      <br>
      <br>
      Because I cannot figure out how to start the Periodical in an Ajax
      callback, my "solution" was to setup the Periodical in my
      renderContentOn: and immediately stop it.&nbsp; Later when the "Play"
      button is hit, I start the Periodical.
      <br>
      <br>
      I hope that explains what I am up to.
      <br>
      <br>
      I do appreciate your help, thanks.
      <br>
      <br>
      Cheers,
      <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-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>