Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Integrating One Html File Into Another


32 replies to this topic

#26 Tyssen

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPip
  • 1,161 posts
  • Location:Brisbane, QLD

Posted 16 January 2006 - 12:03 AM

For SSI, it's the same as an absolute URL:

<!-- #include virtual="/testinclude/header.html"-->


#27 jlhaslip

    Insert Custom Title Here

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,040 posts
  • Gender:Not Telling
  • Location:Linux, DOS and Windows…the good, the bad and the ugly
  • myCENT:81.07
  • Spam Patrol

Posted 16 January 2006 - 12:56 AM

Okay, thanks for the answer Tyssen, however, by way of PM from Buffalohelp, I have information which suggests I stop with this Html Include stuff because Trap17.com does not support them. Now that I know this, I will continue with php includes only.

(apperently, Html includes is a MS ASP construct and trap17 is Linux, so that's why they aren't supported here.)

#28 Tyssen

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPip
  • 1,161 posts
  • Location:Brisbane, QLD

Posted 16 January 2006 - 01:12 AM

jlhaslip, on Jan 16 2006, 10:56 AM, said:

Okay, thanks for the answer Tyssen, however, by way of PM from Buffalohelp, I have information which suggests I stop with this Html Include stuff because Trap17.com does not support them. Now that I know this, I will continue with php includes only.

(apperently, Html includes is a MS ASP construct and trap17 is Linux, so that's why they aren't supported here.)
I actually wrote a post that said something like that the first time, but something happened and it didn't get posted, so the 2nd time around I just went for the quick approach. :blink:

#29 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 27 February 2009 - 07:20 AM

Dependences on web server Apache or IIS and configuration of serverIntegrating One Html File Into Another

No, that's incorrect actually - you can include any sort of file, even.Txt files. The file calling the include must have the correct fileExtension, but it doesn't matter for the include itself.

That is wrong it depends on webserver configuration and brand like PHP on IIS or PHP on Apache is so diferente.winner example page

-reply by Winer RealesKeywords: it is possible to put html form in another one

#30 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 21 April 2009 - 03:17 AM

My question is what if you are NOT using a server???Integrating One Html File Into Another

I send out a Christmas CD each year... The user puts it into the PC and it autoloads index.Html which starts the show. It's all contained on the CD... No internet connection needed. In the past I used frames where the first loaded the menu on the left and the main page on the right. Wanting to get away from frames... I was wondering how I could write one menu.Html page and have it automatically pulled into the rest of the pages.

 I'm thinking there would be a DIV that would be on the left... And another on the right. I don't even mind using a table with two cells... And loading the menu on the left and the main page on the right. Clicking the menu would open a new page that would also contain the same menu.

The problem is... No server, no ASP, no PHP... Just a CD loading pages.

Can it be done?

Thanks,

Jerry



#31 frozen.fish

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 348 posts
  • Gender:Male
  • Location:Everywhere
  • myCENT:42.64

Posted 28 April 2009 - 09:48 PM

there are no other way to pull other pages into your page other than frames.. :P

#32 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 20 September 2009 - 01:29 AM

Extract some html from one site, to display on another via code?Integrating One Html File Into Another

Okay, I accept a few things already.  One, this may be insanely hard to impossible.  Two: It is complicated to explain.I'm trying my best to keep several sites up to date, with several things ranging from schedule, to practice times, etc.  The 'Master site' where I place a large chunk of (sometimes all of it) data, is one step.  But then I have to take the appropriate bits and move them to their respective sites as well.I'm trying to find out of there is a way to extract/snip/look at a specific section of my master site, using code located on the secondary site(s), so I only have to update one of them, and the others fall in place as well.This would cut about 30 minutes to an hour off my average time updating stuff.

-reply by David

#33 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 02 January 2010 - 08:54 AM

Menu run from html page on CD, (not using a server)Integrating One Html File Into Another

Hi Jerry,

Sorry this reply is after Christmas,

1. I guess you could try and incorporate an <iframe> into the page to display the menu on the left which would load your menu contained in a seperate html file?

2. Or the other option would be to use javascript, (document.Write) to write the html code for the menu and put that in an external .Js file that each of your actual pages would load. So if you had two <div>'s the script tag with the .Js location would go in the left <div>.

ie.

HTML:

<link rel="stylesheet" type="text/css" media="all" href="location/menu.Css"/> </head><div id="menu"><script type="text/javascript" src="location/menu.Js"></script></div><div id="mainContent">All of your actual content for the page</div>

CSS:

menu {Float: left;Width: x px;Etc...}MainContent {Float: right;Width: x px;Etc...}

JS:

document.Write(" HTML CODE FOR ACTUAL CONTENT OF PAGE LINE 1 ");document.Write(" HTML CODE FOR ACTUAL CONTENT OF PAGE LINE 2 ");document.Write(" HTML CODE FOR ACTUAL CONTENT OF PAGE LINE 3 ");document.Write(" HTML CODE FOR ACTUAL CONTENT OF PAGE LINE 4 ");Etc...

With both options you would probably style the menu using CSS contained in a seperate .Css file.

A problem you might find with both of these options is the extra security implemented when loading webpages stored on your local hard disk or CD that may restrict Javascript or iframe usage for the user? Although as you've created CDs before I'm sure you come across these problems before!

Hope this helps..

Mark

-reply by Mark






Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users