<!-- #include virtual="/testinclude/header.html"-->
| |
|
Welcome to KnowledgeSutra - Dear Guest | |
Integrating One Html File Into Another
#27
Posted 16 January 2006 - 12:56 AM
(apperently, Html includes is a MS ASP construct and trap17 is Linux, so that's why they aren't supported here.)
#28
Posted 16 January 2006 - 01:12 AM
jlhaslip, on Jan 16 2006, 10:56 AM, said:
(apperently, Html includes is a MS ASP construct and trap17 is Linux, so that's why they aren't supported here.)
#29
Posted 27 February 2009 - 07:20 AM
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
Posted 21 April 2009 - 03:17 AM
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
#32
Posted 20 September 2009 - 01:29 AM
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
Posted 02 January 2010 - 08:54 AM
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

1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users















