Kbase P18828: How to define reusable WebSpeed Objects?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  2/5/2003 |
|
Status: Unverified
GOAL:
How to define reusable WebSpeed Objects?
FACT(s) (Environment):
Webspeed 3.x
FIX:
Reusable embedded SpeedScript files:
When you include embedded SppedScript in a page, the normal HTML document structure is included in the .htm file.
To create a recusable component:
- strip the <HTML>,<HEAD> and <BODY> tags
- if you have added the output-header procedure, remove it.
Reusable CGI wrappers:
The output of the document tags in a CGI wrapper pccurs in the process-web-request section of the file.
To create a reusable component:
- remove the sections of code that output the HTML document tags
- remove the RUN OutputHeader call.
Reusable mapped web objects:
The HTML document tags for mapped web object are included in the .htm file associated with the procedure.
To create a reusable component:
- strip these tags from static HTML file.
- remove the RUN OutputHeader call in the process-web-request procedure
- You do not have to re-extract the offset file
One you make a file reusable, running it is dependent on the file being run from within another object. This can lead to problems in debugging. Progress Software recommends that you develop the component usig the standard file and then make it reusable only when you achieve the desired result in a standalone file.