Click here to Skip to main content
15,309,768 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Serious Site Devlopment Questions Pin
Not Active30-Jan-11 6:35
mentorNot Active30-Jan-11 6:35 
GeneralRe: Serious Site Devlopment Questions Pin
cjoki31-Jan-11 5:12
Membercjoki31-Jan-11 5:12 
GeneralRe: Serious Site Devlopment Questions Pin
Not Active31-Jan-11 10:36
mentorNot Active31-Jan-11 10:36 
AnswerRe: Serious Site Devlopment Questions Pin
Steve Maier2-Feb-11 4:49
professionalSteve Maier2-Feb-11 4:49 
Questionhtml pointing to php Pin
Douglas Kirk26-Jan-11 6:40
MemberDouglas Kirk26-Jan-11 6:40 
AnswerRe: html pointing to php Pin
cjoki26-Jan-11 7:40
Membercjoki26-Jan-11 7:40 
QuestionConceptShare Pin
Civic0626-Jan-11 3:51
MemberCivic0626-Jan-11 3:51 
QuestionName of the file/form that called / or included an html document. Pin
Douglas Kirk25-Jan-11 9:35
MemberDouglas Kirk25-Jan-11 9:35 
Hello,

I have a simple menu bar that many webpages display, I wanted to put the code in a separate html file so that it was easier to maintain, as apposed to modifing ten or more files when a change is made.

<ul>
    <li id="menuHome"><a href="index.html">Home</a></li>
    <li id="menuResults"><a href="results.htm">Results</a></li>
    <li id="menuEvents"><a href="events.htm">Events</a></li>
</ul>    


from html documents it is included by

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


from php documents it is included by

<?php include "MenuBlock.html";?>


I want to know who is including this file so that I can adjust the CSS properties to reflect that the proper menu item is selected.

<script type="text/javascript">
document.write(document.referrer);
</script>


I had thought that the above would work, but the "calling document" is not the actual referrer.

I have JavaScript to modify the looks of the menu based on the menu id tags.

How can I tell which page is including this, or am I going totally in the wrong direction. (New to webpages)

Thank you in advance.
AnswerRe: Name of the file/form that called / or included an html document. Pin
TheGreatAndPowerfulOz25-Jan-11 9:48
MemberTheGreatAndPowerfulOz25-Jan-11 9:48 
GeneralRe: Name of the file/form that called / or included an html document. Pin
Douglas Kirk25-Jan-11 9:50
MemberDouglas Kirk25-Jan-11 9:50 
AnswerRe: Name of the file/form that called / or included an html document. Pin
Gerben Jongerius25-Jan-11 20:00
MemberGerben Jongerius25-Jan-11 20:00 
QuestionConsole-style home page? Pin
dszarkow25-Jan-11 2:32
Memberdszarkow25-Jan-11 2:32 
AnswerRe: Console-style home page? Pin
Richard MacCutchan25-Jan-11 3:06
mveRichard MacCutchan25-Jan-11 3:06 
GeneralRe: Console-style home page? Pin
dszarkow25-Jan-11 3:20
Memberdszarkow25-Jan-11 3:20 
GeneralRe: Console-style home page? Pin
Richard MacCutchan25-Jan-11 3:28
mveRichard MacCutchan25-Jan-11 3:28 
QuestionChanging the CSS properties of a menu bar Pin
Douglas Kirk24-Jan-11 21:35
MemberDouglas Kirk24-Jan-11 21:35 
AnswerRe: Changing the CSS properties of a menu bar Pin
Gerben Jongerius25-Jan-11 0:27
MemberGerben Jongerius25-Jan-11 0:27 
GeneralRe: Changing the CSS properties of a menu bar Pin
Douglas Kirk25-Jan-11 0:52
MemberDouglas Kirk25-Jan-11 0:52 
GeneralRe: Changing the CSS properties of a menu bar Pin
Gerben Jongerius25-Jan-11 3:59
MemberGerben Jongerius25-Jan-11 3:59 
QuestionLooking for development resources and suggestions Pin
Gregory Gadow24-Jan-11 6:21
MemberGregory Gadow24-Jan-11 6:21 
AnswerRe: Looking for development resources and suggestions Pin
David Mujica24-Jan-11 7:48
MemberDavid Mujica24-Jan-11 7:48 
GeneralRe: Looking for development resources and suggestions Pin
fjdiewornncalwe24-Jan-11 8:57
professionalfjdiewornncalwe24-Jan-11 8:57 
GeneralRe: Looking for development resources and suggestions Pin
Gregory Gadow24-Jan-11 11:00
MemberGregory Gadow24-Jan-11 11:00 
GeneralRe: Looking for development resources and suggestions Pin
Not Active24-Jan-11 11:59
mentorNot Active24-Jan-11 11:59 
AnswerRe: Looking for development resources and suggestions Pin
Peter_in_278024-Jan-11 12:18
professionalPeter_in_278024-Jan-11 12:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.