how to make a frameset in web program?

Who can tell me how to make a frameset,
The frameset have two frame,each frame is a dynamic html.

in onaction:
<FRAMESET COLS="250,*" NORESIZE BORDER="0">
  <FRAME SRC="/scripts/project1.dll/left" NAME="Chapters">
  <FRAME SRC="/scripts/project2.dll/right" NAME="MainText">
</FRAMESET>

but how to do reponse.content?

LVL 1
adamyAsked:
Who is Participating?
 
geobulConnect With a Mentor Commented:
Hi adamy,

What's going on?

Regards, Geo
0
 
geobulCommented:
Hi adamy,

I do not understand what exactly the problem is.

If you want to send frames page from a dll you need a page with a link on a previous page, for example:
  "http://domain/scripts/getframe.dll/show"

Than in getframe.dll in show action you can write:

{ show action }
procedure TDBModule.DBModuleWebActionItem1Action(Sender: TObject;
  Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
begin
  Response.Content := '<FRAMESET COLS="250,*" NORESIZE BORDER=0>'+#10 +
    '<FRAME SRC="/scripts/project1.dll/left" NAME="Chapters">'+#10+
    '<FRAME SRC="/scripts/project2.dll/right" NAME="MainText">'+#10+
  '</FRAMESET>'+#10;
  Handled := true;
end;

When this page is loaded in a browser, there will be two requests to the server, one for project1 with action 'left' and another for project2 with action 'right'. These projects must have corresponding actions to handle the requests and show the pages in frames.

Regards, Geo
0
 
RadlerCommented:
Spying...
0
All Courses

From novice to tech pro — start learning today.