473,418 Members | 2,079 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,418 software developers and data experts.

Frames and Browser Reload Question

Hi,

I have an application where I use a left frame to navigate to another page
in the main frame. After I've done this, when I use "RELOAD" in the
browser, it goes back to the original page rather than the one I've
navigated to.

If you go to this page:

http://fboprimedevel.e3ft.com

Then choose "Flight Schedule" on the left navigation pane, then use RELOAD
in the browser, it goes back to the original page.

How do I change this?

Thanks, Dave Ashley

Apr 9 '06 #1
5 1737
David T. Ashley:
I have an application where I use a left frame to navigate to another page
in the main frame. After I've done this, when I use "RELOAD" in the
browser, it goes back to the original page rather than the one I've
navigated to.

How do I change this?


This is a concomitant of frames. Not much you can do, short of
giving each page in the main frame its own frameset (i.e., every
combination of left page and main page has a distinct URL).

If 'RELOAD' reloads the current URL and the current URL points to a
frameset, then it is the frameset that will be reloaded.

Comp.infosystems.www.authoring.site-design.

--
Jock

Apr 9 '06 #2
The best advice is probably not to use frames - there are more problems
with them (i.e. accessibility - browse through framed page with cell
phone is a nightmare).

If you must use them, try using cookies or sessions. Every page in main
frame saves its name to the session or cookie. Main page (the one with
<frameset> and <frame> tags) will read this information and write the
appropriate src attribute of main frame.
David T. Ashley wrote:
Hi,

I have an application where I use a left frame to navigate to another page
in the main frame. After I've done this, when I use "RELOAD" in the
browser, it goes back to the original page rather than the one I've
navigated to.

If you go to this page:

http://fboprimedevel.e3ft.com

Then choose "Flight Schedule" on the left navigation pane, then use RELOAD
in the browser, it goes back to the original page.

How do I change this?

Thanks, Dave Ashley

Apr 9 '06 #3
"Jiri Fogl" <xf******@stud.fit.vutbr.cz> wrote in message
news:e1**********@boco.fee.vutbr.cz...
The best advice is probably not to use frames - there are more problems
with them (i.e. accessibility - browse through framed page with cell phone
is a nightmare).

If you must use them, try using cookies or sessions. Every page in main
frame saves its name to the session or cookie. Main page (the one with
<frameset> and <frame> tags) will read this information and write the
appropriate src attribute of main frame.


In a logical sense, I agree with you ... the behavior of the browser is not
guaranteed and it should reload the frameset.

The mystery to me is why Internet Explorer is apparently able to make such
good guesses most of the time.

For example, if you go to this web site:

http://www.metzgersaircraft.com/

and try the links on the left navigation bar (with Internet Explorer), then
use reload, you'll notice that it reloads the main frame as expected. I
know for sure that this site does not use cookies for frame status (I helped
them set it up). I can cite other sites with frames that behave the same
way with IE. (For example, http://webtools.e3ft.com/ and try the "htpasswd
generation" and then reload.)

So, IE is using cues that I'm not understanding to take a good guess ... but
it doesn't work on the development site I'm playing with. The question is
why.

Thank you for the suggestion about the cookies. That will definitely do the
trick if I can't figure out why IE works the way it does (and it is probably
better as it would work on other browsers, too). That suggestion will
definitely cure my problem. But the mystery remains ...

Thanks, Dave

Apr 9 '06 #4
Just a thought, seeing as you're using php anyway, why not just forget
about frames and use an html table for your index instead, something
like this...

echo "<head>\n";
//get ready to load the selected page
if (isset($_GET['page']))

{
$page = $_GET['page'];
$suffix = '.php';
$ps = $page.$suffix;
}
else
{
$ps = 'home.php';
}
$page = ucwords($page);
echo "<html>\n";
echo "<head>\n";
echo "<title>Welcome to My $page Page</title>\n";

echo "</head>\n";

Your table might look something like this...

echo "<tr>\n";
echo "<td><a href='$PHP_SELF?page=home'>Home</a></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td><a href='$PHP_SELF?page=news'>News</a></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td><a href='$PHP_SELF?page=projects'>Projects</a></td>\n";
echo "</tr>\n";

and a table within one of these pages (in this case the Projects page)
might look something like this...

echo "<th><a title='Sort by this column'
href='$PHP_SELF?key=project_no'>Project No</a></th>\n";

HTH

Apr 12 '06 #5
strawberry wrote:
Just a thought, seeing as you're using php anyway, why not just forget
about frames and use an html table for your index instead, something
like this...

echo "<head>\n";
//get ready to load the selected page
if (isset($_GET['page']))

{
$page = $_GET['page'];
$suffix = '.php';
$ps = $page.$suffix;
}
else
{
$ps = 'home.php';
}
$page = ucwords($page);
echo "<html>\n";
echo "<head>\n";
echo "<title>Welcome to My $page Page</title>\n";

echo "</head>\n";

Your table might look something like this...

echo "<tr>\n";
echo "<td><a href='$PHP_SELF?page=home'>Home</a></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td><a href='$PHP_SELF?page=news'>News</a></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td><a href='$PHP_SELF?page=projects'>Projects</a></td>\n";
echo "</tr>\n";

and a table within one of these pages (in this case the Projects page)
might look something like this...

echo "<th><a title='Sort by this column'
href='$PHP_SELF?key=project_no'>Project No</a></th>\n";

HTH


Or even better than tables, use CSS.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Apr 12 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

40
by: JohnnyCJohnny | last post by:
Is it pretty safe to say that almost all web surfers now use browsers that are Frames compatible? What are most people using these days? IE? Thanks
7
by: David Hayes | last post by:
I tried finding an answer on http://www.quirksmode.org/ without success. I am attempting a complicated Frames structure. I have made it work in IE, but not Netscape. I begin with three...
20
by: Tammy | last post by:
What would be a good alternative to using frames? I need something that will section my webpage into two halves and can change both frames on a single click. Thanks in Advance, Tammy
3
by: KathyB | last post by:
Hi, Been reading a LOT about frames, variables, etc. I realize you can NOT use server.transfer with target frames (which are client)... I have a Parent frame containing Left and Right frames....
20
by: M.Siler | last post by:
Let me first by saying I am NOT a .net programmer, but am very skilled with ASP, JavaScript, HTML, DHTML, Flash development. I've been reading through posts here about Frames vs. Master Pages and...
5
by: Ben | last post by:
Hello First, I know frames are not exactly the best things to be using in an asp application, but I had no other choice. My problem is that I now have situations where one frame must update...
5
by: sudidelaravi | last post by:
I have two frames in a frameset.Left frame has treeview.Right frame has the aspx pages w.r.t nodes of treeview control. When i perform some operation in the right frame, left frame(treeview...
3
by: Raffi | last post by:
Hello, I've been struggling and trying to work around this for a while and have even posted on usenet in the past without any working solutions. I'm posting it again in case someone out there...
7
by: rjames.clarke | last post by:
Back when frames were in vogue, we would set up the navigation or menu bar to change the content of the main frame. This had the advantage of not requiring the whole page to reload. Just the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.