Nah. I've actually done this. *IT CAN BE DONE SERVER SIDE* using PHP.

Here's what you do. The link(s) in question have to look like this:

    <a href="whole_page.php?context_data=whatever_you_want"
target="_top">click here</a>

Here, "whole_page.php" is the "topmost" php script, the master one, the one
that controls everything else. It's a php script which generates a
<FRAMESET> page. It has a <TITLE> tag in its <BODY> so it will change the
title in the browser. The frameset page gets the context data from the GET
variables and specifies the urls of the subpages like this:
"sub_page.php?context_data=whatever_you_want", so the browser refreshes the
outer frame, which in turn refreshes the inner frames, and so repeat ad
infinitum. At each stage you pass context information down the chain in the
tags, and retreive them using $_GET["name"].

I did this for my wedding. My husband and I had an online stag party (for
both sexes), which was basically a chat root which ran in any old browser
window, so no-one needed IRC. I wrote all the code for that in PHP. I think
it had four frames in all. The topmost page contained two subframes (the top
one was just a visual title, but it had to change with the context). The
bottommost subpage was itself a frameset which passed the context down even
further.

There ARE things that you can't do server-side, obviously. But you can often
do a lot more server-side than you might at first expect.

Jill



-----Original Message-----
From: Matt Hillebrand [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 22, 2003 1:49 AM
To: 'Andrew Ferguson'; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] using frames


This is a client-side programming issue, so you would use JavaScript and
not PHP. I guess you could do something like:

  <a href="blah.php" onClick="parent.document.title='The Blah
Page'">blah</a>

It can be fun/challenging to dynamically create javascript code with
PHP. I sometimes like to use borderless iframes (not frames). That way
the client-side javascript code can interact with a server-side PHP
script in order to change the content on the screen without changing the
location of the web browser (and without the appearance of frames).

Matt

|-----Original Message-----
|From: Andrew Ferguson [mailto:[EMAIL PROTECTED] 
|Sent: Friday, February 21, 2003 7:31 PM
|To: [EMAIL PROTECTED]
|Subject: [PHP-WIN] using frames
|
|
|I want to build a website with frames and have PHP call up the 
|data from a mySQL database. However, I also want the title to 
|change every you click a different link in the frame. Any ideas?
|
|
|
|-- 
|PHP Windows Mailing List (http://www.php.net/)
|To unsubscribe, visit: http://www.php.net/unsub.php
|
|
|



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to