473,769 Members | 1,723 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1757
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.infosystem s.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.vut br.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>Wel come 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'>Hom e</a></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td><a href='$PHP_SELF ?page=news'>New s</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>Wel come 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'>Hom e</a></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td><a href='$PHP_SELF ?page=news'>New s</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*******@attgl obal.net
=============== ===
Apr 12 '06 #6

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

Similar topics

40
2949
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
2332
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 frames, where the two lower ones are within a Frameset within the master Frameset: 1111111111111111111
20
25012
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
6458
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. IS IT POSSIBLE (and HOW please) to do the following: 4 text controls filled in by user in Left frame, with a button click event to:
20
3372
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 there seems to be the thought of why use Frames when you can use a Master Page? How does a Master Page only update a section without re-displaying the entire page. We have a site that has some small swf banners for lack of a better term that we...
5
2095
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 another. Is there a way to do this? I have tried the following code: string script = "javascript:parent.menu.location.reload(true);"; this.Page.RegisterStartupScript("reload", script);
5
1532
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 control) should also be reloaded(refreshed) along with the right frame using javascript.
3
4381
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 has a solution. I'm working on a web application with an i-frame in the main application window. Inside the i-frame are various dynamic links for opening data entry popups. One of these popups has a couple of i- frames itself. These i-frames also...
7
4583
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 target frame would reload. Can this be done in CSS? Every page I see in CSS the nav / menu bar causes the entire page to be reloaded. This seems inefficient. thanks
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10211
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10045
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9863
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8870
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7408
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6673
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5298
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.