CodeAve.com CodeAve.com - ASP - Server Variables
ASP
·Read/Write
·Script Writers
·Database Display
·Response Objects
·Server Variables
·Random Events
·Articles
·Miscellaneous
·Contents
·What's New?
JavaScript
CSS
HTML
Maps
Links
Mail List
Search
Sitemap


 


Frames View | No Frames View
Want to provide a link to a common navigation area within your website, but do not want to take up valuable screen space? Place it in a frame. Utilizing two server variables http_referrer and script_name You can prvide the ability to break into and out of frames without your user losing their current location within your site.
View the Output
Text View
Print View
Mail this Link
Download the Code

framepage.asp

<%
' request the page the user came from 
referer=request.servervariables("http_referer")
' if there is no referer then insert one
if referer = "" then 
referer = "1.asp"
end if
%>


<FRAMESET cols="225,*" framespacing="0" border="0" frameborder="0">

<FRAME
NAME="left"
SRC="navigation.asp"
MARGINHEIGHT=0
MARGINWIDTH=0
SCROLLING = "auto"> 

<FRAME
NAME="right"
SRC="<%= referer %>"
MARGINHEIGHT=0
MARGINWIDTH=0
SCROLLING = "auto">

</FRAMESET>

 

navigation.asp

<head>
<title>Navigation Page</title>
</head>
<body bgcolor="#C0C0C0">

<div align="left">
<table border="0" cellpadding="0" cellspacing="0" width="200">
<tr>
<td>This is a sample navigation page.&nbsp; Click on any on the links
below to toggle back and forth between the frame and no frames view,
while preserving the location your user came from 
<p>&nbsp;</p>
<!-- be certain all links are targeted to the name of the frame from
framepage.asp --> 
<p><a href="1.asp" target="right">Page 1</a></p>
<p><a href="2.asp" target="right">Page 2</a></p>
<p><a href="3.asp" target="right">Page 3</a></p>
<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>
<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>
<p>&nbsp;</td>
</tr>
</table>
</div>

1,2,3.asp

This an example of a ordinary page
<p>&nbsp;</p>
<p><font size="6">1.asp</font></p>
<p>&nbsp;</p>
<p>Click <a href="1.asp"> here</a> for 1.asp<br>
Click <a href="2.asp"> here</a> for 2.asp<br>
Click <a href="3.asp"> here</a> for 3.asp<br>
<br>
</p>
<!-- Insert this code into your current pages to "convert them
to pages that can toggle between frames -->
<p><a href="framepage.asp" target="_top">Frame View</a><br>
<a href="<%' insert the server variable script name. This
' will write the name of the current page
response.write request.servervariables("script_name") %>

target="_top">No Frame View</a></p>

 

 

 



ASP: What's New? | Articles | Script Writers | Database Display | Read/Write
Server Variables | Response Objects | Random Events | Miscellaneous
HTML: Forms | Hyperlinks | Headers | Tables | Hyperlinks | Headers | Text Display
JavaScript: Document Info | Forms | Images | Navigation | Script Writers
CSS: Basics | Page Display | Text Display | Script Writers | Miscellaneous
  • 2014 michael kors
  • air max women 2013
  • 2014 michael kors
  • air max 2014
  • oakley glasses
  • oakley glasses

  • Maps: Map Script Writers | Bing Maps | Google Maps
  • bottes fr
  • ugg boot
  • Privacy Statement

    CodeAve.com is hosted by MyHosting.com
    Donate Food Online with a Mouse Click at TheHungerSite.com
    Donate Land Online with a Mouse Click at TheRainForestSite.com
    © 1999 - 2017 CodeAve.com
    All Rights Reserved

  • Kids jordan 6 rings
  • Jordan retro 10
  • Jordan retro 3