Description: This will be your entry URL for the sample application. It contains two frames. Name the top frame 'top' and the bottom frame 'main'. The top frame should load top_menu and the main frame should load splash.
|
top (load top_menu here) |
|
main (load splash here) |
CREATE OR REPLACE PROCEDURE MAIN_FRAME AS
--------------------------------------------------------
-- FILENAME: main_frame
-- FILEDATE: 01.20.2003
-- CREATED BY: Susan Boardman
-- DESCRIPTION: Creates application frameset if visitor
-- cookie exists. Otherwise, calls the
-- visitor_name page to request visitor name.
-- URL : main_frame
--------------------------------------------------------
v_val VARCHAR2(100);
BEGIN
IF cookie_exists('VISITOR') THEN
htp.p('
<HTML>
<HEAD>
<TITLE>University Maintenance Website</TITLE>
</HEAD>
<FRAMESET ROWS="133,*">
<FRAME NAME="top" SCROLLING="no" NORESIZE
TARGET="main" SRC="top_menu">
<FRAME NAME="main" SRC="splash" TARGET="main">
<NOFRAMES>
<BODY>
<P>This page uses frames, but your browser doesn''t support them. </P>
</BODY>
</NOFRAMES>
</FRAMESET>
</HTML>
');
ELSE
htp.script('document.location="visitor_name";');
END IF;
END;