Re: Flag checking
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 32231
interpreted = N
texte = This is basically working against the grain of _all_ CGI programs. HTTPis stateless by nature (a given page can be displayed once a second oronce an hour or in a random order). CGI programs are never suitable forrealtime programming, due to the latency in the web and the reliance onthe client to request the next page (rather than the server pushing anupdated page). In addition, if you set a page for 1-second refresh, youwill completely hose anyone with a slow link (since the page will notfinish loading before it tries to reload).Perhaps if you described what you are trying to accomplish, we can giveyou some suggestions for other ways to accomplish it. If you are tryingto provide some kind of secure login checking, with automatic logoutbased on some kind of external criteria, your are trying to do somethingthat plain HTTP will never work well with. You will have to move to atrue client-server development (maybe with Java).John PeacockJeff Homan wrote:> > This my first message to this group, so bear with me...> > I need to check for a flag in a database, when that flag is found, I> need to update the screen by refresh or reload or even redirect. The> problem that I am having, is that I need to check for this flag every> one or two seconds. I have no problem with using javascript, it's just> that currently I am stumped with what I can do.> > My only idea is this:> > -Set a loop (I'm not sure how many times per second the loop runs> though)> -Check the database in a showif> -If the flag is found, redirect the page to itself> > Does this sound reasonable, or does someone else have a better idea?> > Thank you,> Jeff Homan-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
This is basically working against the grain of _all_ CGI programs. HTTPis stateless by nature (a given page can be displayed once a second oronce an hour or in a random order). CGI programs are never suitable forrealtime programming, due to the latency in the web and the reliance onthe client to request the next page (rather than the server pushing anupdated page). In addition, if you set a page for 1-second refresh, youwill completely hose anyone with a slow link (since the page will notfinish loading before it tries to reload).Perhaps if you described what you are trying to accomplish, we can giveyou some suggestions for other ways to accomplish it. If you are tryingto provide some kind of secure login checking, with automatic logoutbased on some kind of external criteria, your are trying to do somethingthat plain HTTP will never work well with. You will have to move to atrue client-server development (maybe with Java).John PeacockJeff Homan wrote:> > This my first message to this group, so bear with me...> > I need to check for a flag in a database, when that flag is found, I> need to update the screen by refresh or reload or even redirect. The> problem that I am having, is that I need to check for this flag every> one or two seconds. I have no problem with using javascript, it's just> that currently I am stumped with what I can do.> > My only idea is this:> > -Set a loop (I'm not sure how many times per second the loop runs> though)> -Check the database in a showif> -If the flag is found, redirect the page to itself> > Does this sound reasonable, or does someone else have a better idea?> > Thank you,> Jeff Homan-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
John Peacock
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
[WebDNA] Old Problem, the exclamation point (2014)
[WebDNA] random blank results? how come? (2014)
WebDNA deletes major DB data big time (2004)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
Error:Too many nested [xxx] contexts (1997)
WebDNA Solutions ... sorry! (1997)
Speed Optimization - Mac (1997)
Emailer update for Mac? (1998)
ErrorMessages.db suggestion (1997)
Multiple catalog databases and showcart (1997)
NT Manual (1997)
Nested ListFiles (1998)
WebCat2: Formulas.db question (1997)
"Advanced" Search Algorithm (2008)
Sorting Numbers (1997)
Caching pages...again (2001)
WebCat2b13MacPlugIn - More limits on [include] (1997)
textarea to page display (1998)
Redirect frame targets (1998)
need help with [sendmail] and [showif]s (1998)