W3C home > Mailing lists > Public > www-talk@w3.org > July to August 2000

Re: linking in frames

From: Igor Clark <igor.clark@forefrontconsulting.co.uk>
Date: Fri, 18 Aug 2000 05:35:18 -0400 (EDT)
To: Reinier Post <rp@win.tue.nl>
cc: Catherine Sherman <catherine_sherman@hotmail.com>, www-talk@w3.org
Message-ID: <Pine.LNX.4.21.0008181046370.3957-100000@fevah.pixelpark.co.uk>
hiya

a possibly less clumsy solution to your 'deep-link' problem would be
to have some server-side process generate the frameset dynamically
depending on parameters in the request.

for example:

http://your-server/frameset.cgi?maincontent=specificpage.html

such a cgi (or other) program to generate the frameset document would
be trivial to implement in perl, php, asp, jsp, etc ...

alternatively if you do not have an environment where you can run
server-side processes, you can write javascript code in the frameset
html page which will parse out the name and value pairs from the query
string and then use document.write() to generate the <FRAME> tag.

good luck
igor.

On Thu, 17 Aug 2000, Reinier Post wrote:

>   Catherine,
> 
> > I have a frames document with 2 frames: one is a navigation bar, and the
> > other is a main content frame.  From an OUTSIDE DOCUMENT, I would like to
> > create a hyperlink that loads my frames page, and loads a specific page into
> > the main content frame.  However, the page I would like to load is different
> > from the default page for that frame as set up in my frames definition.
> >
> > Is there a way to target a specific frame in a document from a link that is
> > in a completely different document?
>  
> Your frames page (the one with the <FRAMESET>) specifies both the names
> of the containing frames and their initial content (URLs).  An outside
> document can refer to the enclosing frames page - but that won't load
> your content frame of choice - or to your content URL of choice using
> your content frame name as a TARGET - but that assumes your frames page
> is already there.  It cannot do both at once - a single link cannot
> convey the information.  There is no way to solve this in HTML.  You'd
> have to use Javascript or special HTTP techniques to send multiple
> pages consecutively and it would always be clumsy.
> 
> The only real solution is to have a new frameset page that refers to
> the content you want to include.  You didn't mention which of the pages
> you can write, which makes it hard to suggest a specific solution.
> 
> 

-- 
<?> Internet applications consulting & development
<e> igor@forefrontconsulting.co.uk
<m> +44 (0)79 6715 5849
Received on Friday, 18 August 2000 16:00:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 October 2010 18:14:24 GMT