473,396 Members | 1,990 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,396 software developers and data experts.

PHP and FRAMES/NOFRAMES question

hello all,
i am using FRAMES on my PHP site, basically i am using just on frame
with the entire site inside. this is mainly for cosmetics so that
http://www.mydomain.com always is displayed in the address bar instead
of every single variable and value being passed ;) a cleaner look imo.

anyways, my index.htm looks like this:
<html>
<head>
<title>mydomain.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="100%,*" frameborder=no framespacing="0" border="0">
<frame src="/index.php" name="frame1" noresize>
<frame src="/index.htm">
</frameset><noframes></noframes>
<body>
</body>
</html>

the index.htm is the "default" document, but the real content starts with
index.php.

what is the best approach for using the NOFRAMES option so that if the
browser
isnt frames-friendly, that it goes back to the "old" way, i.e. just loading
up
index.php ?

would i just use a meta refresh 0 w/index.php in the NOFRAMES tag ? it's
hard
to test since all of my browsers like frames ;)

thanks all.
Jul 16 '05 #1
1 2943
fartsniff wrote:
hello all,
i am using FRAMES on my PHP site, basically i am using just on frame
with the entire site inside. this is mainly for cosmetics so that
http://www.mydomain.com always is displayed in the address bar instead
of every single variable and value being passed ;) a cleaner look imo.

anyways, my index.htm looks like this:
<html>
<head>
<title>mydomain.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="100%,*" frameborder=no framespacing="0" border="0">
<frame src="/index.php" name="frame1" noresize>
<frame src="/index.htm">
</frameset>
<noframes><?php include 'index.php'; ?></noframes>
<body>
</body>
</html>

the index.htm is the "default" document, but the real content starts with
index.php.

what is the best approach for using the NOFRAMES option so that if the
browser
isnt frames-friendly, that it goes back to the "old" way, i.e. just loading
up
index.php ?

would i just use a meta refresh 0 w/index.php in the NOFRAMES tag ? it's
hard
to test since all of my browsers like frames ;)


If the browser doesn't support frames, chances are it doesn't support
meta refresh either - see above

--
Justin Koivisto - sp**@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.

Jul 16 '05 #2

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

Similar topics

4
by: A Web Master | last post by:
I am designing a site for a client where I have a frameset and 3 frames (all in ASP). I am creating session variables in the frameset that need to be accessed in the frames. It seams that in...
2
by: BoodieMan | last post by:
The second example doesnt show any borders between frames, but isn't complaiant with the WC3. The top one is compliant but shows the borders. I'd like to get the complaint one to not show any...
26
by: jj | last post by:
Care to enlight? Thanks!
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
34
by: s c o t t | last post by:
I know Jakob Neilsen and a bunch of other usability advocates and critics usually frown on usage frames. However, most people probably seem to have at least version 5 of IE or newer and I am...
2
by: Litron | last post by:
Hi All, I'm working with 3 Frames on a web-page: (top) Top.html, (left) Navigation.html, and (right) "Content" which contains varying html pages based on the (left) Navigation Selection - the...
1
by: ids | last post by:
I have my own website and i want to use a mouse effect. My problem is that i use frames and when i put the javascript in the index.html like this: <html> <head> <meta name="keywords"...
25
by: Steal | last post by:
Hi at all I try to validate this page using the link: http://validator.w3.org/ but it return that this is not a valid HTML 4.01 page please where is it error? Steil <!DOCTYPE HTML PUBLIC...
5
by: Dfenestr8 | last post by:
Hi. I'm designing a site, and I'm trying find a way of browsing it without using frames, so I can test the <noframes> </noframes> tags. I use a linux mandrake 10 system, with KDE 3.2. Is there...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
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,...
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
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...
0
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...
0
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,...

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.