<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>
html div <br>
onClick: ((html scriptaculous periodical)<br>
frequency: 1;<br>
on: #renderNextImageOn: of: self;<br>
assignTo: 'FLPer'<br>
);<br>
<br>
with: [html text: 'click to start'].<br>
<br>
html div <br>
onClick: ('FLPer.stop();');<br>
with: 'click to stop'.<br>
<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. 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. 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. 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>