Web Design Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignWeb Design Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 30th, 2003, 12:51 PM
Telemach's Avatar
Telemach Telemach is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 25 Telemach User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Inserting a html page withing a html page

What's the best way to do this please? I simply can't remember what language would take the content from one page and insert it where you would like in another.
I basically want to have a constant menu displayed without using frames, so a html page (or however it's done) would contain just the menu, and all the other pages would call it and show it on the left/right/whatever.

Cheers.

Reply With Quote
  #2  
Old October 30th, 2003, 01:11 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
Which language?
- any.

Client side:
JavaScript example:
<script ...>
document.write('<a href="menu1.html">menu1</a>');
...
</script>

PHP example:
<? include "file.html" ?>

... I am too lazy to thing of all the 100s of others....
IMO it only depends on what your provider allows you to do and your skills.

hth,
M.
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #3  
Old October 30th, 2003, 02:28 PM
Telemach's Avatar
Telemach Telemach is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 25 Telemach User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Excellent. Cheers.

Reply With Quote
  #4  
Old November 6th, 2003, 03:05 PM
BoR|S's Avatar
BoR|S BoR|S is offline
RTFM-Now!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Israel
Posts: 20 BoR|S User rank is Sergeant (500 - 2000 Reputation Level)BoR|S User rank is Sergeant (500 - 2000 Reputation Level)BoR|S User rank is Sergeant (500 - 2000 Reputation Level)BoR|S User rank is Sergeant (500 - 2000 Reputation Level)BoR|S User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 h 43 m 28 sec
Reputation Power: 0
Send a message via ICQ to BoR|S
You can use DHTML for that matter:

Code:
<object type="text/x-scriptlet" width=100% height="250" data="data.htm">
</object>

Reply With Quote
  #5  
Old November 6th, 2003, 08:00 PM
drgroove's Avatar
drgroove drgroove is offline
pushing envelopes, not pencils
Dev Shed God 2nd Plane (6000 - 6499 posts)
 
Join Date: Feb 2002
Posts: 6,224 drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Day 4 h 34 m 57 sec
Reputation Power: 174
Quote:
Originally posted by BoR|S
You can use DHTML for that matter:

Code:
<object type="text/x-scriptlet" width=100% height="250" data="data.htm">
</object>


Not to pick nits, but that isn't DHTML, its just plain HTML.
__________________
Give a person code, and they'll hack for a day; Teach them how to code, and they'll hack forever.
Analyze twice; hack once.
The world's first existential ITIL question: If a change is released into production without a ticket to track it,
was it actually released?


About DrGroove: ITIL-Certified IT Process Engineer - Enterprise Application Architect -
Freelance IT Journalist - Devshed Moderator - Funk Bassist Extraordinaire


Reply With Quote
  #6  
Old November 7th, 2003, 01:02 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
And scriptlets is afaik a microsoft-only feature...

Great idea... he doesn't want frames, you are suggesting an object instead.

M.

Reply With Quote
  #7  
Old November 7th, 2003, 04:31 AM
cliffhanger9's Avatar
cliffhanger9 cliffhanger9 is offline
fortin bra?
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: city of sin, state of the art
Posts: 416 cliffhanger9 Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 18 h 22 m 19 sec
Reputation Power: 0
Send a message via ICQ to cliffhanger9 Send a message via AIM to cliffhanger9 Send a message via MSN to cliffhanger9 Send a message via Yahoo to cliffhanger9
<!--#include file="menu.html" -->

rock on!!

Reply With Quote
  #8  
Old November 12th, 2003, 04:23 PM
kirants kirants is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 9 kirants User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I do that using SSI.

I have the same requirement of keeping common stuff in one file and include it in all htmls.

So, I do something like:

<!--#include virtual="include.html" -->

However, I had to rename my html to .shtml extension for my webserver to parse it well, though.

Reply With Quote
  #9  
Old December 5th, 2003, 09:12 AM
master_rickster master_rickster is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 37 master_rickster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 20 m 6 sec
Reputation Power: 6
An <Iframe> works very well also. And is very easy to implement.

Reply With Quote
  #10  
Old December 6th, 2003, 02:31 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
Quote:
Originally posted by master_rickster
An <Iframe> works very well also. And is very easy to implement.

...
Quote:
I basically want to have a constant menu displayed without using frames,


And FYI: <iframe> is the same as <object> which was suggested earlier (although with a wrong mimetype).

M.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWeb Design Help > Inserting a html page withing a html page


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway