Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to have MAIN FRAME PAGE to define its frame pages dynamically

Status
Not open for further replies.

Riku

Programmer
Sep 2, 2001
119
Here is code how to have only one MAIN FRAME PAGE and
have the page to set its frame pages dynamically acording to paramethers included in hyperlink.

Hyperlink:
(Hyperlink does not exist)

This is the http code.
<%@ Language=VBScript %>
<html>
<head>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=windows-1252&quot;>
<title>New Page 2</title>
<meta name=&quot;GENERATOR&quot; content=&quot;Microsoft FrontPage 5.0&quot;>
<meta name=&quot;ProgId&quot; content=&quot;FrontPage.Editor.Document&quot;>
</head>
<%
' ************ DEFINING BANNER FRAME PAGE *****
if not request(&quot;bannerframepage&quot;) = &quot;&quot; then
bannerframepage= request(&quot;bannerframepage&quot;)
else
bannerframepage= &quot;include/header_yellow_eng.asp&quot;
end if

' ************ DEFINING LEFT FRAME PAGE *******
if not request(&quot;leftframepage&quot;) = &quot;&quot; then
leftframepage = request(&quot;leftframepage&quot;)
else
leftframepage = &quot;left_frame_support.asp&quot;
end if

' ************ DEFINING MAIN FRAME PAGE *******
if not request(&quot;mainframepage&quot;) = &quot;&quot; then
mainframepage = request(&quot;mainframepage&quot;)
else
mainframepage = &quot;support/getting_book_files.asp&quot;
end if
%>
<frameset framespacing=&quot;0&quot; rows=&quot;98,391*&quot; border=&quot;0&quot; frameborder=&quot;0&quot;>
<frame name=&quot;banner&quot; scrolling=&quot;no&quot; target=&quot;contents&quot; src=&quot;<%=bannerframepage%>&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot;>
<frameset cols=&quot;138,*&quot;>
<frame name=&quot;contents&quot; target=&quot;main&quot; src=&quot;<%=leftframepage%>&quot; scrolling=&quot;no&quot; noresize marginwidth=&quot;0&quot; marginheight=&quot;0&quot;>
<frame name=&quot;main&quot; src=&quot;<%=mainframepage%>&quot; scrolling=&quot;auto&quot; noresize target=&quot;_self&quot;>

</frameset>
<noframes>
<body>

<p>This page uses frames, but your browser doesn't support them.</p>

</body>
</noframes>
</frameset>
</html> F: Riku Tuominen
riku.tuominen@benchmarking.fi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top