/    Sign up×
Community /Pin to ProfileBookmark

Will JS work?

I’m trying to avoid using frames, even though I think they would work in this situation, but was wondering if JS would work…

My problem right now is that anytime I want to change or add an item to my left side menu, I have to change every page on my site to reflect this. What I would like to have happen is that I put the menu in an external file, change it once & the change is reflected on every page.
The [URL=”http://www.dynamicdrive.com/dynamicindex1/davidmenu.htm”]sliding javascript menu[/URL] does this….I change ssmItems, which is an external file, and the changes are on every page. BUT, I don’t want to use the sliding concept in this instance. I just want the menu to be a part of the page.

Is this possible?

Is javascript the way to go even? I thought CSS might do it, but now I think no.

Does this even make sense? Any suggestions?

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@felgallAug 07.2007 — Don't use JavaScript for navigation as that means that for those with javaScript disabled that you will have no navigation on the page.

You really want a server side solution such as SSI (server side includes) or a scripting language (eg. PHP) to handle this.
×

Success!

Help @genmo spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...