[Seaside] Periodical and running a script

Lukas Renggli renggli at gmail.com
Sun Jan 3 19:14:21 UTC 2010


The code looks ok. Did you try with FireBug?

Lukas

2010/1/3 Squeaker <squeakman at gmail.com>:
> Hello,
>
> I have a SUPeriodical set up as follows:
>
> html
>  script:
>    ((html periodical)
>        id: 'compositeGraph';
>        frequency: 5 seconds;
>        on: #renderNextImageOn: of: self)
>
>
> What I want is to run some javascript when the periodical is triggered.  For
> example, I would like the following javascript to be executed each time the
> periodical is triggered:
>
> html
>  script: ('document.getElementById("testDiv").src="new text";').
>
>
> I cannot figure our how to run the javascript code when the periodical is
> triggered.
>
> How do I do this?
>
> Thanks,
> Frank
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>



-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the seaside mailing list