473,326 Members | 2,126 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,326 software developers and data experts.

Frames or some other way?

NoPeasHear
I am trying to figure out the most efficent way of doing the following.

I need to place a box in the middle of a page, surrounded by content. There will be four tabs/links that would switch out the content of the box, but leave the rest of the page as is.

What would be the best way to go about this, and still keep the same content and url for the rest of the page?

I know a little about frames, but me thinks I am going to be knowing a lot more soon. I have also used .php includes before.
Nov 21 '06 #1
7 2048
moishy
104 100+
Frames would do it.
Nov 22 '06 #2
AricC
1,892 Expert 1GB
Don't use frames unless you absolutely must, make a div for that content then create a seperate html page with just the info you wanted in the frame, include it via PHP like you have done before <?php include('somefile.htm') ?> where you want it to appear.
Nov 22 '06 #3
Two questions:

Why is a DIV better than a frame?

&

If I used a DIV instead of a frame, how do I get the PHP file in the to load a different PHP, without changing the URL address for the whole page?
When I used includes before, I only used one file for one part of the page. I have never had multiple content that could be loaded into the same part of the page.

Also, thanks for your responses.
Nov 22 '06 #4
AricC
1,892 Expert 1GB
Here is a topic about divs vs. frames. One thing I don't think they mention and this may not be a big deal but not all browsers handle frames well, IE FF etc..( the big ones ) handle them, but other browsers ( for the blind ) may not. Use a frame or an iframe if the content is dynamic.
Nov 22 '06 #5
AricC
1,892 Expert 1GB
Whoops missed one. When you make another page and include it you are using php only to include a page. Example: You just started a site, so it is small in size (# of pages), but eventually it will grow to a much larger number of pages. If you make a seperate html file for your menu you can use that menu on multiple pages by simply including it
Expand|Select|Wrap|Line Numbers
  1. <?php include('menu.htm') ?>
this makes your site much more easy to update since you update 1 file that gets included in all of your pages as opposed to changing the menu on all of your pages.HTH,
Aric
Nov 22 '06 #6
ronverdonk
4,258 Expert 4TB
Whenever you have the choice, use CSS and DIVs over frames!

Ronald :cool:
Nov 22 '06 #7
Thanks for the help!
Nov 23 '06 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Richard | last post by:
I have been working with PHP now for a few months and would like some knowledgeable advice on laying out PHP based web pages. I have noticed that some web pages that use PHP also use frames...like...
12
by: tomasio | last post by:
Dear Group, I managed to simulate framelike behaviour in mozilla-based browsers by now, but it doesn't work out with Internet Explorer 6. Could someone glance through the code on the...
3
by: Jan Ebbe Jensen | last post by:
Hi I have tried the following code. It works in Mozilla. In IE I'm not able to enable DesignMode? What have I done wrong? It says that obj is undefined? Can anyone help me please.
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...
7
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
by: qwerty | last post by:
I´m new to ASP.Net. My workmate has some experience with it. He claimed that in ASP.Net working with frames is much simpler than it was ASP. I asked explanation but he couldn't give me such. (a...
27
by: Murray R. Van Luyn | last post by:
Hi, Is using frames in a website as big an issue nowadays as it was maybe 5 or so years ago? I can remember that you used to have to have a frame site, as well as a non frame site for browsers...
8
by: rn5a | last post by:
I have a HTML page named Index.html which is divided into 3 frames. The URL of 2 of the frames are HTML pages but the 3rd frame houses a ASP page. Now when I go to Windows Explorer, navigate to...
56
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....
12
by: MartinRinehart | last post by:
They just don't get no respect. "In the early days of JavaScript, multiframe and multiwindow web applications were fairly common. Now, web design has turned strongly against the use of frames...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.