[Seaside] help with #urlForAction:
rh at 4096.sk
Tue Jul 19 14:06:55 CEST 2005
You are not using setTimeout correctly. The delay is the second argument.
And I don't think it can take an url as action.
On Mon, 18 Jul 2005, Jason Rogers wrote:
> Aside from the inherent security risks and what not...
> I have a method like this:
> renderShuttingDownOn: html
> | url |
> url := html
> urlForAction: [self shutDownTheImage].
> div: [html text: 'Shutting down in 5 seconds.'].
> html script: 'setTimeout(5000, "' , url , '"); void 0;'
> The timeout is triggered after 5 seconds, but the block in the
> #urlForAction: message does not get executed. Is there something I am
> doing wrong here?
> #shutDownTheImage just does "SmalltalkImage current snapshot: true
> andQuit: true". I have put a "self halt" in that method but it never
> gets there.
> Jason Rogers
> "I am crucified with Christ: nevertheless I live; yet not I,
> but Christ liveth in me: and the life which I now live in
> the flesh I live by the faith of the Son of God, who loved
> me, and gave himself for me."
> Galatians 2:20
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
More information about the Seaside