473,548 Members | 2,716 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

frames

Hi,

My website uses frames and one should always load the frameset and not
only one of the frames. Is there a nice way to ensure/check that a page is
actualy loaded within a frameset?

thanks,

David
Jul 16 '05 #1
19 6472
David de Kloet wrote:
Hi,

My website uses frames and one should always load the frameset and not
only one of the frames. Is there a nice way to ensure/check that a
page is actualy loaded within a frameset?


Well, if you must use frames...

Putting the following in the head of your pages will mean that, in the event
of a frame being loaded without the frameset, the page will default to
index.html. Whilst this doesn't give the visitor the framed page that they
were expecting, it does give them a complete frameset with a menu so that
they can at least navigate the site.

<script language="javas cript">
if (document.locat ion == top.location)
{
document.locati on="index.html" ;
}
</script>

I'd also suggest that there are lots of ways of getting rid of frames - the
"I want to have the same menu on every page without repeating it" is the
benefit that I hear most often and that's easily solved with includes:
http://www.bignosebird.com/sdocs/include.shtml

HTH
--
PeterMcC
If you feel that any of the above is incorrect,
inappropriate or offensive in any way,
please ignore it and accept my apologies.

Jul 16 '05 #2
On Tue, 8 Jul 2003, PeterMcC wrote:
Well, if you must use frames...
I know what you mean.
<script language="javas cript">
if (document.locat ion == top.location)
{
document.locati on="index.html" ;
}
</script>
Thanks, just what I was looking for.
I'd also suggest that there are lots of ways of getting rid of frames - the
"I want to have the same menu on every page without repeating it" is the
benefit that I hear most often and that's easily solved with includes:
http://www.bignosebird.com/sdocs/include.shtml


I'm aware that you should reconsider the moment you want to you frames but
I think frames serve a purpous on my site so I'll just keep my frames.
David
Jul 16 '05 #3
On Tue, 08 Jul 2003 11:52:50 +0200, David de Kloet wrote:
Hi,

My website uses frames and one should always load the frameset and not
only one of the frames. Is there a nice way to ensure/check that a page is
actualy loaded within a frameset?

thanks,

David


Yes. Never, *ever*, use frames.

problem solved.
--
Jeffrey D. Silverman | jeffrey AT jhu DOT edu
Johns Hopkins University | Baltimore, MD
Website | http://www.wse.jhu.edu/newtnotes/

Jul 16 '05 #4
> > My website uses frames and one should always load the frameset and not
only one of the frames. Is there a nice way to ensure/check that a page is actualy loaded within a frameset?


Yes. Never, *ever*, use frames.

problem solved.


That's silly. There are several places when using frames is a good idea.
One example that comes to mind is firmware for a router or somesuch that has
a web interface. No PHP or ASP server can be run there, so frames provide a
good way to show a menu on all pages.

If they were pointless, then W3C would have depreciated them long ago.
Jul 16 '05 #5
On Tue, 08 Jul 2003 16:28:33 +0100, Marc wrote:
> My website uses frames and one should always load the frameset and not
> only one of the frames. Is there a nice way to ensure/check that a
> page is > actualy loaded within a frameset?


Yes. Never, *ever*, use frames.

problem solved.


That's silly. There are several places when using frames is a good idea.
One example that comes to mind is firmware for a router or somesuch that
has a web interface. No PHP or ASP server can be run there, so frames
provide a good way to show a menu on all pages.

If they were pointless, then W3C would have depreciated them long ago.


Yes, but he is not developing firmware for a router, is he?

As far a 94.8% of website devlopment goes, frames are a bad idea. This
means, for all intents and purposes, *never* use frames.

Allright, allright, I get your point. Okay, I amend my statement.

Only use frames if you *really* *really* *really* know what you are doing,
or are developing firmware for a router.

later...
--
Jeffrey D. Silverman | jeffrey AT jhu DOT edu
Johns Hopkins University | Baltimore, MD
Website | http://www.wse.jhu.edu/newtnotes/

Jul 16 '05 #6
"Marc" <me@privacy.net > wrote:
That's silly. There are several places when using frames is a good idea.
One example that comes to mind is firmware for a router or somesuch that has
a web interface. No PHP or ASP server can be run there, so frames provide a
good way to show a menu on all pages.
1. Why do you need to show a menu on all pages? Isn't a link back to a
dedicated menu page as good if not better?
2. Even if you need to show a menu on all pages why does it need to be
in a frame and not part of the real page?
If they were pointless, then W3C would have depreciated them long ago.


ITYM deprecated (no 'i'). And is 1997 long enough ago for you? Frames
were deprecated as soon as they were standardised.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>
Jul 16 '05 #7
On Tue, 8 Jul 2003, Jeffrey Silverman wrote:
On Tue, 08 Jul 2003 16:28:33 +0100, Marc wrote:
Yes. Never, *ever*, use frames.

problem solved.
That's silly. There are several places when using frames is a good idea.
One example that comes to mind is firmware for a router or somesuch that
has a web interface. No PHP or ASP server can be run there, so frames
provide a good way to show a menu on all pages.

If they were pointless, then W3C would have depreciated them long ago.


Yes, but he is not developing firmware for a router, is he?


No I'm not. I have two frames, left and right. At the left you can search
a database and get results. If you click on a search result at the left,
the frame at the right displays details about the chosen result.

If you know "Magic: the Gathering" you can try it at:
http://www.cs.vu.nl/~dskloet/magic

How would you replace these frames?

As far a 94.8% of website devlopment goes, frames are a bad idea. This
means, for all intents and purposes, *never* use frames.

Allright, allright, I get your point. Okay, I amend my statement.

Only use frames if you *really* *really* *really* know what you are doing,
or are developing firmware for a router.

later...

David
Jul 16 '05 #8
PeterMcC wrote:
Putting the following in the head of your pages will mean that, in the
event of a frame being loaded without the frameset, the page will default
to index.html. Whilst this doesn't give the visitor the framed page that
they were expecting, it does give them a complete frameset with a menu so
that they can at least navigate the site.


Example of what happens when you use this method. (Real example)

A user (lets call him 'David Dorward') searches Google for information.
David finds a site with the information.
David clicks the link and waits for page to load.
David looks for the information.
He can't find it.
After a while he goes back to google and looks for a different side with the
information on it.

(Then becuase he can't find any other site (unusual) he disables JS, goes
back to the site, and notices that it looks entirely different to the way
it looked last time - becuase without JS he didn't get redirected to the
homepage).
--
David Dorward http://david.us-lot.org/
Redesign in progress: http://stone.thecoreworlds.net/
Microsoft announces IE is dead (so upgrade):
http://minutillo.com/steve/weblog/20...ces-ie-is-dead
Jul 16 '05 #9
Marc wrote:
Yes. Never, *ever*, use frames.

problem solved.


That's silly. There are several places when using frames is a good idea.


As a cheap-man's server side include a good idea it isn't.
--
Iso.
FAQs: http://html-faq.com http://alt-html.org http://allmyfaqs.com/
Recommended Hosting: http://www.affordablehost.com/
Web Standards: http://www.webstandards.org/
Jul 16 '05 #10

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

Similar topics

2
1868
by: les | last post by:
Hello, I just wonder what are the implications to use frames to build portal. I've seen some sites that are quite fast with frames but I just wonder if there are hidden "costs". I've tried to use in the past and I run into a lot of problems when I worked with environment where there were frame and no frames pages. Please let me know if...
40
2873
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
2305
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
95
5647
by: Neal | last post by:
Of course, every frame site I've ever seen has reduced usability and all. We've been through this before. But as frameset is still a part of HTML, there must be some legitimate use for it, hmm? For most markup I know when it's useful and when it's not, but regarding table markup I sure know when it isn't good, but can't really come up with...
25
43247
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 "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <html> <head>
5
16562
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 a browser for linux that doesn't use frames? Or is it possible to configure either firefox or konqueror to not use frames?
7
2976
by: dj Bass | last post by:
simple, they don't like things that restrict the server-side controls... and when it comes to frames, you need client side stuff and that stuff's up the asp.net strategy. right or wrong?
3
2414
by: Nish | last post by:
Is HTML frame is an old technology? Will the modern web application are developed using the HTML frames? Does all the browsers support them? Thank you for your suggestion, Nish
56
3785
by: Deepan HTML | last post by:
Hi All, Currently i am working in a framed environment where i have divided the window as 20% and 80% and the 20% is used for navigation purpose and right frame for displaying the orignal content. Now i want to Disable ad Enable the menu items which are placed in the left frame for navigation purpose. Can any of you input me with any idea...
14
7035
by: Mark | last post by:
Hi Guys, I am very new to ASP.NET world. I need to create three frames. One at the top, one on the left and another on the right side. I don't know how to do it. So please help me with it. I'll appreciate any help/example you can provide. I am using visual studio 2005. Thanks, Mark
0
7518
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...
0
7954
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...
1
7467
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6039
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...
0
5085
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...
0
3497
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...
0
3478
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1054
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
755
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.