Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Closed Thread
How do i can insert a html page into other html page?
Old 09-23-2010, 07:31 AM How do i can insert a html page into other html page?
Banned

Posts: 1
Name: haver stock
Trades: 0
Background: I have a small page that need to be embeded into a bounch of other html pages.

Help needed:
1. Please provide the html chunk that I can use to embed the small page in to other html pages.
2. Is there a way of not using iframe? Can I use <Object> or <embed>? How?
haverstock is offline
View Public Profile
 
 
Register now for full access!
Old 09-23-2010, 11:01 AM Re: How do i can insert a html page into other html page?
edgray's Avatar
Super Moderator

Latest Blog Post:
Frantic
Posts: 4,264
Name: Sugarcane Gray
Location: Hell, Southern Spain
Trades: 0
use php for this.

save your HTML to insert as a .php file.

then in your main document use:

PHP Code:
<?php include 'docname.php'?>
oh, make sure the main document is also a .php!

Good luck.
__________________

Please login or register to view this content. Registration is FREE
- a project in video and sound.

Please login or register to view this content. Registration is FREE
"Absolute Rubbish, an insult to the blues." - NME.

Please login or register to view this content. Registration is FREE
- Come use our agency :)

Last edited by edgray; 09-23-2010 at 11:04 AM.. Reason: clarification
edgray is offline
View Public Profile Visit edgray's homepage!
 
Old 09-24-2010, 06:48 AM Re: How do i can insert a html page into other html page?
Html Web Design's Avatar
Experienced Talker

Posts: 31
Name: WP Themes
Location: Nagpur
Trades: 0
#
<object classid="clsid:25336920-03F9-11CF-8FD0-00AA00686F13" data="some.html">

#<p>backup content</p>

#</object>

#<![endif]-->

#

#<!--[if !IE]> <-->

#<object type="text/html" data="some.html">

#<p>backup content</p>

#</object>



Regards,
Shri Krishna Technologies
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
Html Web Design is offline
View Public Profile Visit Html Web Design's homepage!
 
Old 09-27-2010, 04:10 AM Re: How do i can insert a html page into other html page?
Novice Talker

Posts: 5
Name: Merlin Pieters
Trades: 0
use include

but make sure your the page you use include inside of is .php not .html.
__________________
Discover the little known secrets to mastering html in under 7 days with my new free course

Please login or register to view this content. Registration is FREE
merlinpieters is offline
View Public Profile
 
Old 09-27-2010, 03:19 PM Re: How do i can insert a html page into other html page?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
you use include inside of is .php not .html.
Or .asp, .aspx, .shtm, .shtml AND you could have the server set to use .htm(l) as SSI
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
View Public Profile Visit chrishirst's homepage!
 
Old 09-29-2010, 12:26 PM Re: How do i can insert a html page into other html page?
Junior Talker

Posts: 2
Trades: 0
you can also use javascript and ajax to update <div> innerHTML.
__________________

Please login or register to view this content. Registration is FREE
obender68 is offline
View Public Profile
 
Old 09-29-2010, 09:34 PM Re: How do i can insert a html page into other html page?
Physicsguy's Avatar
404 - Title not found

Posts: 919
Name: Scott Kaye
Location: Ontario
Trades: 0
OR you could use the old fashioned way: frames.
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is offline
View Public Profile
 
Old 09-30-2010, 06:35 AM Re: How do i can insert a html page into other html page?
Banned

Posts: 11
Name: Lenard A
Location: Philippines
Trades: 0
you can use iframe or a superframe like Physicsguy said.
sample
<iframe src="page.html" frameborder="0" width="" height=""></iframe>

or php include like what other members suggested
ilitrato is offline
View Public Profile Visit ilitrato's homepage!
 
Closed Thread     « Reply to How do i can insert a html page into other html page?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.54458 seconds with 12 queries