0

My menu is a very large menu and editing it on each individual page is very time consuming (~160 lines of code per chapter and there are 11 chapters).

So I am wondering if I can place my menu into another html document and then call/import it to the currently viewed page. If it can be done without jscript I would be happy, as I am new to web development, but if not then that is alright, will have to learn it some time.

2
Contributors
9
Replies
10
Views
7 Years
Discussion Span
Last Post by sammer021486
0

Yes, that is the foundation behind many websites
php asp shtml all have the ability to do server includes, all you need to do is find which of the above your server supports, and you can include the menu with a single statement, and it doesnt need to be a full html file, it just needs the menu, all the headers footers etc are predifined in the file doing the include, in php (files end with .php)it is <?php include('menufilename'); ?> at the point the menu is to sit
it is hugely easier than editing a multitude of separate menus

I have over 1600 pages on my site, but it really is 4 include files and a database, none of the viewable pages actually exist until you view them

Edited by almostbob: n/a

0

I know that the server supports php. I am coding in VS Web Development express 2008, I am using it to validate while I code, everything that I have coded so far is just html and css, nothing else.

As of right now I am not sure how the final product will be hosted. It maybe loaded onto the server, or it may also be burnt onto a DVD and accessed only when needed from the DVD. I am not sure if burning it to a DVD and running it from the DVD will prevent me from using the import for my menu or not.

0

most includes require server processing, different to what is available on a browser,
if you burn the thumbdrive version (noinstall portable or a bunch of other names) of the ide that the development is done in onto the dvd as well, no problems, the ide will support the incl;udes

Edited by almostbob: n/a

0

so if I took a program like XAMPP and loaded it onto the DVD, I could write an autorun script to cause the DVD to load the Home page of the website and the XAMPP would provide the server to run the import codes?

0

not sure about xamp's protocols and parameters, that would have to be looked up in the manual for xamp, or whatever runtime program is found that can display
but for many programs, the program can be called with a parameter of a filename that opens the file
This link to nusphere.com is a product I have used before

0

I will have to play with xampp as I have no funds to purchase the program that you have recommended. Xampp says that it can run as a stand alone to develop web sites locally.

0

They wouldnt lie about that, (ability to run local) too easy to check, would solve all the problems that could possibly imagine, with a live cd/dvd you can upload the html files to a server from the dvd when needed or run locally

0

I think that I have got it figured out. Unless someone can recommend another program or way of doing it. I am going to make a *.bat file to execute the XAMPP and start Apache, then use a *.inf to call the *.bat file and load the web page when the USB/CD/DVD is inserted.

0

I think that I have it now. I created an *.exe file that launches the *.bat files required to start XAMPP, then after a pause, while XAMPP starts, have the web page open on the start page.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.