p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_codeclinic thread: RE: Adding Favourites and Frames


Message #1 by "Laphan" <laphan@u...> on Tue, 11 Sep 2001 21:22:45 +0100
you need to devise a way that a URL can be typed into the browser to display
you're frameset with the desired page showing.

The way this would be done is to make the page that splits up the screen
into frames into an ASP, and pass in the filename of the file that you want
to display.

e.g.

frames.asp:
<FRAMESET...>
<FRAME...>
	<FRAMESET...>
	<FRAME...>
	<FRAME... SRC='<%=request.querystring("page")%>'>
	</FRAMESET>
</FRAMESET>

then you can get to any page and have it displayed in the frameset with the
url:

frames.asp?page=somepage.htm

then your add to favourites link would say

<A
HREF="javascript:window.external.Addfavorite('http://www.laphan.co.uk/frames
.asp?page=about.
html', About Page')" >Add to Favourites</A>


-----Original Message-----
From: Laphan [mailto:laphan@u...]
Sent: 11 September 2001 21:23
To: Code Clinic
Subject: [proasp_codeclinic] RE: Adding Favourites and Frames


Hi All

I can't get my head round this so I thought I would consult the experts.

I have a 3 FRAME web site (1 horizontal frame at the top and 2 vertical
frames below this).

The vertical frame on the right is the one that changes to the pages that
the user clicks on the navigation panel which resides on the left vertical
frame.  Standard fare really.

My problem is that I want to put an 'Add to Favourites' link on each page
that is displayed on the RHF (right hand frame), but this causes me a
problem.  If the user then goes back to that Favourite they lose my 3 Frame
layout and it goes pear shaped.

The code for my Add to Favourites link is as follows:

<A
HREF="javascript:window.external.Addfavorite('http://www.laphan.co.uk/about.
html', About Page')" >Add to Favourites</A>

This type of link has been round a bit now, but I need to improve on it.  I
basically want the favourite to show the 3 FRAME layout, but in the RHF I
want it to be the page that they clicked the Favourite link on (ie, About
Page) and not the first page that appears when opening my web site (ie, my
Home Page).

Can anybody get round this?

Rgds


Laphan

laphan@u...



  Return to Index