[Seaside] Re: SUPeriodical

Bob Arning arning at charm.net
Sun Oct 2 01:51:21 UTC 2011


Well, actually, it does work, just not the way you would expect...

Duration>>javascriptOn:

javascriptOn: aStream

     aStream javascript: self asMilliseconds

so, with
     frequency: 5 seconds;
you get:
     /*<![CDATA[*/function onLoad(){new 
Ajax.PeriodicalUpdater("id2","/minimal",{"evalScripts":true,"parameters":["_s=D9HBcPMns0cWVlyv","_k=FRkhcmfBZDlqJufs","1"].join("&"),"frequency":5000});};/*]]>*/

whereas, with
     frequency: 5 ;
you get
/*<![CDATA[*/function onLoad(){new 
Ajax.PeriodicalUpdater("id2","/minimal",{"evalScripts":true,"parameters":["_s=vwLxpe0u7GDjrXNf","_k=6_NhJs0lWtpMzr6m","1"].join("&"),"frequency":5});};/*]]>*/

Aren't unit of measure issues fun?

Cheers,
Bob


On 10/1/11 7:17 PM, squeakman wrote:
> Hi Bob,
>
> You are right that does work. The only difference I can see is the use 
> of the frequency: method.
>
> If I use frequency: 5 seconds;  then it does not work.
>
> If I use frequency: 5;  this works.
>
> It looks as if you can no longer use aDuration for frequency:
>
> Thanks for your help
>
> On 01/10/2011 7:00 PM, Bob Arning wrote:
>> This works:
>>
>> renderContentOn: html
>>
>> html div script: ((html prototype periodical)
>> frequency: 5 ;
>> on: #renderNextImageOn: of: self);
>> with: [html text: 'this is a test']
>>
>> Cheers,
>> Bob
>>
>> On 10/1/11 5:31 PM, squeakman wrote:
>>> Attached is a minimal test of SUPeriodical that I believe shows the
>>> problem. I am using VisualWorks.
>>>
>>> As an aside, I notice that in the test example SUPeriodicalTest, (html
>>> scriptaculous periodical) is not being used, instead they are using
>>> (html scriptaculous updater) with an interval: method. I have no idea
>>> if this is significant or not.
>>>
>>> Thanks,
>>> Frank
>>>
>>> On 01/10/2011 4:56 PM, Lukas Renggli wrote:
>>>> Ok, so maybe you can provide a minimal file-out so that we can
>>>> reproduce?
>>>>
>>>> Lukas
>>>>
>>>> On 1 October 2011 22:54, squeakman<squeakman at gmail.com> wrote:
>>>>> Ah, the syntax error was my typing error. I had the line:
>>>>> ((html scriptaculous periodical) halt;
>>>>>
>>>>> and when I constructed my email I deleted the "halt" but forgot the
>>>>> semicolon. So it is not an issue with the compiler, just me.
>>>>>
>>>>>
>>>>> On 01/10/2011 4:26 PM, Lukas Renggli wrote:
>>>>>>
>>>>>> I don't see a logical problem in your snippet.
>>>>>>
>>>>>> There is a syntax error though: I have no clue what the first
>>>>>> semicolon means and why a Smalltalk compiler would accept that?
>>>>>>
>>>>>> Lukas
>>>>>>
>>>>>> On 1 October 2011 20:02, squeakman<squeakman at gmail.com> wrote:
>>>>>>>
>>>>>>> No, no FireBug errors.
>>>>>>>
>>>>>>>
>>>>>>> On 01/10/2011 1:44 PM, Lukas Renggli wrote:
>>>>>>>>
>>>>>>>> Any errors in FireBug?
>>>>>>>>
>>>>>>>> On Saturday, 1 October 2011, squeakman<squeakman at gmail.com
>>>>>>>> <mailto:squeakman at gmail.com>> wrote:
>>>>>>>> > Hi,
>>>>>>>> >
>>>>>>>> > I have the following code:
>>>>>>>> >
>>>>>>>> > html
>>>>>>>> > script:
>>>>>>>> > ((html scriptaculous periodical);
>>>>>>>> > id: 'compositeGraph';
>>>>>>>> > frequency: 5 seconds;
>>>>>>>> > on: #renderNextImageOn: of: self ;
>>>>>>>> > assignTo: 'FLPer').
>>>>>>>> >
>>>>>>>> >
>>>>>>>> > but my method #renderNextImageOn: never gets called. Do you see
>>>>>>>> anything obvious that I am doing wrong?
>>>>>>>> >
>>>>>>>> > Thanks,
>>>>>>>> > Frank
>>>>>>>> >
>>>>>>>> > _______________________________________________
>>>>>>>> > seaside mailing list
>>>>>>>> > seaside at lists.squeakfoundation.org
>>>>>>>> <mailto:seaside at lists.squeakfoundation.org>
>>>>>>>> > 
>>>>>>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>>>>>>> >
>>>>>>>>
>>>>>>>> -- 
>>>>>>>> Lukas Renggli
>>>>>>>> www.lukas-renggli.ch<http://www.lukas-renggli.ch>
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> seaside mailing list
>>>>>>>> seaside at lists.squeakfoundation.org
>>>>>>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> seaside mailing list
>>>>>>> seaside at lists.squeakfoundation.org
>>>>>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> seaside mailing list
>>>>> seaside at lists.squeakfoundation.org
>>>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> seaside mailing list
>>> seaside at lists.squeakfoundation.org
>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>>
>> _______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20111001/ae5dbd38/attachment-0001.htm


More information about the seaside mailing list