Solved

Refresh problem with frames

Posted on 2001-07-30
5
339 Views
Last Modified: 2008-03-10
Hello

I'm creating a site with frames.
Top frame, left frame and main.

My problem is when i navigating in my pages an i press the refress button then i loose all my variables and the page is at the beginning index.php. Is it not possible when de refresh button is pressed that only the main page refreshes???
0
Comment
Question by:Seever
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 40

Accepted Solution

by:
Richard Quadling earned 50 total points
ID: 6333773
From what I can tell, most browsers refresh the URL in the address bar (or whatever it is called where you see http://www.mysite.com/index.php).

If you are using frames, then refresh ignores them and looks at the parent frame and refreshes that.

If you are losing variables, then add them to a session.

PHP 4's sessions are very good. They do what I want.

Using sessions will allow the variables that are present in the frames to remain available to your PHP script, even if the user presses refresh.

I hope this helps,

Regards,

Richard Quadling.
0
 
LVL 8

Expert Comment

by:us111
ID: 6336935
Remove the frames :)) This is not an answer but just a suggestion
Frames are really bad with navigations. You always have problem with cache
And most of search engine (spider) doesn't index site with frame. They only index
the homepage
0
 
LVL 40

Expert Comment

by:Richard Quadling
ID: 6336962
In answer to us111's point about frames ...

They CAN be used REALLY badly, but, with a little knowledge about what a spider is doing, you can handle them.

Normally, your main page will contain something like this ...

<html>
<head>
<title>Title</title>
<meta name="robots" content="follow,noindex">
</head>
<frameset>
 <frame ...>
 <frame ...>
</frameset>
<noframes>
This site uses frames.
<a href="/robot.html">My links</a>
</noframes>
</html>

This will tell search engines (those that obey the META tags) to NOT index this page, but to follow all links.

The only link available is robot.html.

This file contains a simple list of all the pages you want to add to the search engine.

Whilst this is not a total answer, I have found that this works fairly well.

The robots page also has the same meta tag.

I use frames for a navigation panel (take a look at www.ivanpeters.co.uk and www.razorsedge.co.uk - both using Joust navigator - support in the www.delphi.com forums).

Regards,

Richard Quadling.
0
 
LVL 1

Author Comment

by:Seever
ID: 6338720
I had some problems to figure it out how sessions works, but i made it. Thanks
0
 
LVL 8

Expert Comment

by:us111
ID: 6339717
Jacob Nielsen is a web guru.
Take a look at his site, it's really interesting
http://www.useit.com

and
http://www.useit.com/alertbox/9612.html
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question