> I have a question... say I have an HTML file and I want to include the
> output from a Delphi CGI or ISAPI app in the middle of it...

Isn't this when you use the TPageProducer's OnHTMLTag event?  You put your
own tag into the source HTML eg "<#INSERTMYOTHERSTUFF>".

Then when the PageProducer's OnHTMLTag event handler fires you can examine
the content of the TagString parameter and set the replacement text to
whatever you want. eg


procedure TWebModule1.PageProducer1HTMLTag(Sender: TObject; Tag: TTag;
  const TagString: String; TagParams: TStrings; var ReplaceText: String);
begin
  if TagString = 'INSERTMYOTHERSTUFF' then begin
    ReplaceText := '';
    with Dataset do 
      while not EOF do begin
          ReplaceText := ReplaceText + 
           '<P>'+FieldByName('CustName').AsString+'</P>';
        Next;
      end;
  end;
end;


Or you could replace it with the contents of an HTML file or the output from
another PageProducer.


Paul Ritchie
Radio Computing Services (NZ) Ltd.

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to