<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>
html div <br>
script: ((html scriptaculous periodical)<br>
frequency: 1;<br>
on: #renderNextImageOn: of: self;<br>
assignTo: 'FLPer'<br>
), (<br>
html prototype script add: (JSStream new<br>
nextPutAll: 'FLPer.stop();';<br>
yourself)<br>
);<br>
<br>
with: [html text: 'this is a test'].<br>
html div <br>
onClick: ('FLPer.start();');<br>
with: 'start me'.<br>
html div <br>
onClick: ('FLPer.stop();');<br>
with: 'stop me'.<br>
<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>
>> 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>
html script: 'FLPer.stop();'. "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"><mailto: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>
sebastian <a class="moz-txt-link-rfc2396E" href="http://about.me/sebastianconcept"><http://about.me/sebastianconcept></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>