[Seaside] help with #urlForAction:
jacaetevha at gmail.com
Tue Jul 19 15:35:23 CEST 2005
That was a typo that put the milliseconds as the first arg. Thanks
for letting me know about the url issue though. I suppose I could use
On 7/19/05, radoslav hodnicak <rh at 4096.sk> wrote:
> 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].
> > html
> > 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
> > http://lists.squeakfoundation.org/listinfo/seaside
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
"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."
More information about the Seaside