[Seaside] help with #urlForAction:

Jason Rogers jacaetevha at gmail.com
Mon Jul 18 18:00:33 CEST 2005

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

More information about the Seaside mailing list