Solved

Keeping the page within a frame format

Posted on 1998-02-12
7
194 Views
Last Modified: 2013-12-25
I'm building a website that uses a standard three(3) frameset mainpage set-up. The client wants to be sure that any page called up online opens within that main frameset. To clarify: If someone enters the site they will hit the "default.html" mainframeset (ie: banner,main and content pages) BUT (for example)if the http://www.main.htm address is entered, how can I tell, with HTML, "main.htm that it must open in the "mainframeset"default.html and not on its own full page? I hope this is not too confusing. Thanks for your excellent help in the past. I'm learning alot from this service!
0
Comment
Question by:graphics
  • 4
  • 3
7 Comments
 
LVL 3

Accepted Solution

by:
bigelos earned 100 total points
ID: 1857275
The default file that gets opened at any web site is index.htm or index.html, or variations of index.*.

So, if you want the "default" frameset to open up when someone accesses http://www.main.htm, have it specified in your index.html file.
0
 
LVL 3

Expert Comment

by:bigelos
ID: 1857276
There is no way to prevent the user from typing in the absolute URL and having it come up in a full page.

i.e. Take a look at
kanga.unixnet.org/~bigelos/temp/frames_no_bars

Compare that to
kanga.unixnet.org/~bigelos/temp/frames_no_bars/index.html

and also to
kanga.unixnet.org/~bigelos/temp/frames_no_bars/left.htm

There is no way I can prevent you from going to the last example with just html.  Maybe with HTML combined with a .htaccess file, or some cgi script that creates "on the fly" html could do it.

0
 

Author Comment

by:graphics
ID: 1857277
Windows nt uses "default.html" as the initial hit page.
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 3

Expert Comment

by:bigelos
ID: 1857278
I guess it really depends on your server, because I have a Windows NT based server, and it uses index.html as the initial hit page.  Are you interested in using your .htaccess file to limit whether or not the page can be viewed?  (I guess for a FrontPage server, it would be your #haccess file.)
0
 

Author Comment

by:graphics
ID: 1857279
I guess my only concern was that the pages should only be accessable through the frameset, this is because the way the client wants all the navigation set up. If someone brings up a page within the site, with out coming in through the mainpage,  there is no way for them to view anything else because there will be no links on the individual pages. If #haccess can help me there, I would very much like to know how to do it. Thanks for your responce, it is really appreciated!
0
 
LVL 3

Expert Comment

by:bigelos
ID: 1857280
In general, if that is your only concern, it is highly probable that anyone that can come in to your site and bypass your frames, etc., will be able to navigate your site anyways.  Usually people who get out of framesets do so by right-clicking on a link to "open page in new browser window", so the #haccess won't really work that good for them.  But, you can use it to stop others from linking to images, etc on your site.

First of all, what kind of server are you running (besides being NT based)?

I've only used htaccess, and only on a unix system, but it probably follows the same system.  That is:

a.)  You can restrict access to your site so that links have to come from a certain site.  If this site happens to be yours, then only you can link to pages in your site.  Basically, then, nobody will be able to directly type in the URL for a specific page on your site, unless they were already at your site.
b.)  It is also used for restricting access based on passwords.
c.)  Lastly, it is used for rejecting access from certain sites.

There is a good tutorial on it at
http://hoohoo.ncsa.uiuc.edu/docs/tutorials/user.html

and also some info at
http://www.teleport.com/support/webweave/htaccess.shtml
0
 

Author Comment

by:graphics
ID: 1857281
Thanks Bigelos! Great stuff, and I appreciate the tutourial link.
This is why I like expert exchange so much!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Link Shorteners?  Which one is the best? 10 103
Want to build a web site for a business. Where to start? 9 73
Animated .jpg? 13 60
compact pure CSS Read More Toggle 4 22
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now