Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 11th, 2003, 03:25 PM
Authorized User
 
Join Date: Jun 2003
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default Page Within a Page w/o Frames

Hello all,

I am trying to create a webpage where I can veiw other pages within a parent page. I have a logo and navigation bar that I use for all the other pages in the site and would like to display this as a border around some of the other sites that I want to link to. I know you can do this with frames but I was wondering if there was any other way to achieve this. I'm thinking there probably isn't. The solution could involve scripts or ASP if that matters.

Thanks in advance,
Mike
 
Old June 12th, 2003, 12:26 PM
Authorized User
 
Join Date: Jun 2003
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Dan Jallits Send a message via MSN to Dan Jallits Send a message via Yahoo to Dan Jallits
Default

There are a lot of ways you can do this. I would suggest using ASP or PHP. You might have better luck using PHP since there is an abundance of free code and tutorials out there. Check these sites out:For Database-driven sites and template systems see these:

Best Regards,
Dan Jallits
 
Old June 13th, 2003, 08:06 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 308
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Or - if you can do server side includes, you could do that.
eg:




This way the server parses the pages, so if you need to change the nav, or footer, it gets changes site wide, rather than having to change everything.

I think this might be an Apache only thing - not entirely sure.

It really comes in handy though. For an example, www.monash.edu.au
It uses this for all the header and footer content.

There are 10 kinds of people in the world - those who understand binary - and those with friends
 
Old June 16th, 2003, 11:41 AM
Authorized User
 
Join Date: Jun 2003
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the input, but I'm I don't think I explained my problem very well. I would like to display sombody elses site within the nav bar/graphics border of my own site.

For example I want to have my homepage show up that has a nav bar on the left and our logo on the top. Then when someone clicks the microsoft link on the nav bar I want the page from www.microsoft.com to show up inside my nav bar and logo. Can I do this without frames?
 
Old June 16th, 2003, 12:46 PM
Registered User
 
Join Date: Jun 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to mpusateri
Default

You can try an iframe. It looks like this:

<IFRAME src = "http://address/index.htm"
width = "100%"
height = "250"
scrolling = "no"
frameborder = "0"
></IFRAME>



Mark P.
 
Old September 6th, 2004, 03:27 AM
Registered User
 
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

iFrames work pretty much the same as frames. Is the another way of embedding a page within a page?
 
Old September 6th, 2004, 01:52 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

You have no access to SSI, PHP, ASP, or anything like that?

Snib

<><
 
Old September 10th, 2004, 09:26 AM
Authorized User
 
Join Date: Sep 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Why don't you want to use frames? the obvious way around using frames is to include these logo's etc in each html file but I would use frames as these pictures would be loading with every page. you could use frames and just redirect to the one without frames for noframes users if it's a compatability issue.





Similar Threads
Thread Thread Starter Forum Replies Last Post
access C#.Net page as action of calssic ASP page mansharma_s ASP.NET 1.x and 2.0 Application Design 6 January 7th, 2008 10:58 AM
How can I have 4 frames in a page?? Varg_88 Classic ASP Basics 3 December 9th, 2004 12:32 AM
Nested frames crash page when called on XP Umen Javascript 4 September 23rd, 2004 10:55 AM
How show Word Document in One of the Frames page Umashankar R VB.NET 2002/2003 Basics 1 September 12th, 2004 09:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.