[Seaside] How to stop periodical, end a polling mechanism... again

Boris Popov boris at deepcovelabs.com
Thu Jul 5 16:10:20 UTC 2007


Does it stop if you run the code in the console?

-Boris

-- 
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

boris at deepcovelabs.com

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

> -----Original Message-----
> From: seaside-bounces at lists.squeakfoundation.org [mailto:seaside-
> bounces at lists.squeakfoundation.org] On Behalf Of Leandro Pérez
> Sent: Thursday, July 05, 2007 9:09 AM
> To: seaside at lists.squeakfoundation.org
> Subject: Re: [Seaside] How to stop periodical, end a polling mechanism...
> again
> 
> 
> 
> Lukas Renggli wrote:
> >
> >
> > Have a look at the response you get in FireBug. There is no Javascript
> > included. You need to somehow add it to the response, for example by
> > writing:
> >
> Lukas the response i get has, as you said, no javascript included. It's
> too
> long to be included here..
> 
> 
> Lukas Renggli wrote:
> >
> > You need to somehow add it to the response, for example by
> > writing:
> >      r script: (r periodical alias: 'periodical'; call: 'stop')
> >
> > Also note that if you are on an old version of Scriptaculous scripts
> > of AJAX requests are not evaluated automatically. This means that you
> > maybe have to set  #evalScripts: to true on the outer updater.
> >
> > Lukas
> >
> 
> as for this,
> I've already tried it rendering the same you wrote, and setting
> #evalScripts: to true. The response contains javascript but still does not
> work:
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html
> xml:lang="en" xmlns="http://www.w3.org
> 
> /1999/xhtml" lang="en"><head><title>Seaside</title><meta
> content="text/html;
> charset=utf-8" http-equiv
> 
> ="Content-Type" /></head><body><script
> type="text/javascript">/*<![CDATA[*/periodical.stop()/*]]>*/</script
> 
> >
> 
> nothing happens, the periodical doesn't stop.
> I've also tried to do some more weird stuff, like rendering a hidden div
> with a onLoad javascript event
> that stops the periodical...
> and again nothing happens..
> It's so frustrating!!
> --
> View this message in context: http://www.nabble.com/How-to-stop-
> periodical%2C-end-a-polling-mechanism...-again-tf4030323.html#a11449597
> Sent from the Squeak - Seaside mailing list archive at Nabble.com.
> 
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


More information about the Seaside mailing list