🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1055

Re: CGI : Auto-update

#1055
From: Andrew McIsaac
Date: Mon, 26 Sep 2005 07:15
37 lines
1975 bytes
Hans Galema <notused@notused.nl> wrote:
...
>So please clarify.

Hope this helps
To simplify what I want to do, I made a simple program;

Using the WebModule and PageProducer Component (this ex. = PP):

TWebModule1::WebModule1Item1Action(...
{
  for (i=1;i<10;i++)
  {
    PP1->HTMLDoc->Add("<HTML>");
    PP1->HTMLDoc->Add("  <BODY>");
    strcpy(html_line,"      CGI : I = ");
    strcat(html_line,i);
    PP1->HTMLDoc->Add(html_line);
    PP1->HTMLDoc->Add("  </BODY>");
    PP1->HTMLDoc->Add("</HTML>");
    Response->Content=PP1->Content();
    {
     ... some time delay loop or sleep
    }
  }...
in this case I am trying to write the numbers 1 to 10 
consecutively with a delay, in a targeted frame of the HTML 
Page.

And if a button is pressed (in a different frame of the same 
webpage) can this program be terminated and restarted, or are 
there going to be runaway apps? Or is there a better way to do 
this ?

Thanks again,
Andrew
Technical Details
Message-ID: <4337a00e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsfeed.gamma.ru!Gamma.RU!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!194.25.134.62.MISMATCH!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <43350eff$1@newsgroups.borland.com> <43353711$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,2b3939a5fcf6d021
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Andrew McIsaac" <houston@compusmart.ab.ca>
Sender: "Andrew McIsaac" <houston@compusmart.ab.ca>
Reply-To: "Andrew McIsaac" <houston@compusmart.ab.ca>
Subject: Re: CGI : Auto-update
Newsgroups: borland.public.cppbuilder.internet.web
X-User-Info: 24.70.95.203     
X-Forwarded-For: 68.148.137.21
References: <43350eff$1@newsgroups.borland.com> <43353711$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4337a00e$1@newsgroups.borland.com>
Date: 26 Sep 2005 00:15:26 -0700
X-Trace: newsgroups.borland.com 1127718926 207.105.83.66 (26 Sep 2005 00:15:26 -0700)
Lines: 39
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsfeed.gamma.ru!Gamma.RU!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!194.25.134.62.MISMATCH!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail