[Seaside] Scriptaculous Updater Problem

Joel Turnbull joel at ardishealth.com
Wed Feb 25 12:31:53 UTC 2009


Ta da! thanks Karsten

Karsten wrote:
> Hi Joel,
>
> you probably forgot to add the SULibrary to this application. In this 
> library are the javascript files for Prototype and Scriptaculous. If 
> you don't add the SULibrary you don't load these javascript files and 
> the PeriodicExecuter is not defined.
>
> Kind Regards
> Karsten
>
>
>
> Joel Turnbull wrote:
>> Hi, I'm having problems with the scriptaculous updater, I simply 
>> can't get it to work.
>>
>> As a test case I set up a WAComponent and copied two methods directly 
>> from the "ajax" tab at http://scriptaculous.seasidehosting.st/. The 
>> example renders the time and updates every second, and I can see it 
>> working on that site. For me the page renders but the time is frozen. 
>> The methods are below.
>>
>> renderContentOn: html
>> html paragraph
>>    script: (html updater
>>        every: 1 second;
>>        on: #renderTimeOn: of: self);
>>    with:[ self renderTimeOn: html].
>>
>> renderTimeOn: html
>>   html render: Time now
>>
>> I've tried this on two seperate images, the 2.8.3 Seaside Developer 
>> and Damien C's 3.9.1 web. Both Firefox and Chrome give me 
>> PeriodicalExecuter errors.
>>
>> FF Error Console - PeriodicalExecuter is not defined
>> Chrome Javascript Console - Uncaught ReferenceError: 
>> PeriodicalExecuter is not defined
>>
>> What am I missing?
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>   
>
> -- 
> Karsten Kusche - Dipl.Inf. - karsten at heeg.de
> Tel: +49 3496 21 43 29
> Georg Heeg eK - Köthen
> Handelsregister: Amtsgericht Dortmund A 12812
> ------------------------------------------------------------------------
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>   

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5145 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20090225/e1992461/smime.bin


More information about the seaside mailing list