[plt-scheme] Re: Restart Web-server

From: Japus (jasper.maes at gmail.com)
Date: Thu Nov 5 03:24:14 EST 2009

I already tried the meta-refresh technique and javascript too but the
problem with those is that when I use a variable in it, it reads it's
value when the code is generated and based on that it decides how long
it takes to reload but it should reload when the value of that
variable changes. So it should constantly check the variable and see
if the variable has changed and when it has, instantly reload. If it
hasn't changed, nothing should happen.


On 5 nov, 04:52, YC <yinso.c... at gmail.com> wrote:
> Hi Jasper -
> I think you mean auto/event-driven browser refresh rather than restart the
> web server.
> There is something called the World framework in PLT that appears to handle
> such needs - IIRC it works with Flash, but I never used it and don't know
> how it works - others would have to chime in.
> To do this on your own you can use either use the meta refresh technique, or
> you can use some sort of ajax/comet to have the server notify the client to
> refresh the pages.
> http://en.wikipedia.org/wiki/Meta_refresh- although this is considered
> obsolete by standards it is supported by all major browsers.  The meta
> refresh happens with or without events occuring on the server-side.
> http://en.wikipedia.org/wiki/Comet_%28programming%29- this occurs only when
> an event happened, but there is a lot more work involved.
> You can also do this with Flash/Flex, which has its own dev model.
> Cheers,
> ycOn Tue, Nov 3, 2009 at 11:10 AM, Japus <jasper.m... at gmail.com> wrote:
> > Hello
> > I'm imlementing an online game, Stratego and for that I use the PLT
> > web-server. Everything goes well but I'm stuck trying to find out how
> > I can force the browser to reload the servlet.
> > An example:
> > Player 1 is able to move a pawn and in the meanwhile Player 2 can't
> > (which is obvious)
> > When Player 1 is done, Player 2 can make a move but before he can do
> > that he has to manually reload his browser. And that's what I'm trying
> > to do automatically using some kind of variable and a controlling
> > procedure that determines which browser should be refreshed.
> > Thanks
> > Jasper
> > _________________________________________________
> >  For list-related administrative tasks:
> >  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> _________________________________________________
>   For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Posted on the users mailing list.