Kbase 19962: How to Not Specify the Full URL for Frame Sources and HREFs
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  11/12/2002 |
|
Status: Unverified
GOAL:
How to avoid hard coding the full URL and Frame Source href values
FACT(s) (Environment):
WebSpeed
FIX:
A WebSpeed file is run by referencing it with a URL that contains information about the WebSpeed Agent. If you want to use relative references to application files within a document for defining frame sources and Hypertext Reference attributes (HREFs), the <BASE> tag can be used to tell the document what base URL is used to reference the document.
For example:
<html>
<head>
<title>Developing WebSpeed 3.0 Demo Application</title>
<base href="http://localhost/scripts/wsisa.dll/WService=eappbr/
appframe1.htm">
</head>
<frameset cols="20%,*">
<frame name="SIDE">
<frameset rows="15%,*">
<frame name="HEADER" SRC="menu.htm">
<frame name="MAIN">
</frameset>
</frameset>
</html>
Where the file "menu.htm" is stored as 'C:\class\server\eappws\menu.htm:'.
The base tag makes the SRC attribute's reference relative to the working directory of the broker, which in the above example is c:\class\server\eappws.