Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Trying to Make a JavaScript Server Side Include Menu
Old 09-18-2008, 09:31 PM Trying to Make a JavaScript Server Side Include Menu
Experienced Talker

Posts: 40
Location: i live with your mom
Trades: 0
I'm trying to make a JavaScript server side include so I only have to edit and save 1 .html file. Instead having to save every file and every new hyperlink that I make.

If you go to my page, www.pokerhungry.com on the left side I list like 8 links and each link is a .html link and I put all those links in each page. This is a problem for me because I'm going to be adding more and more links as I go and If I add more, I will have to save new links and new pages on every single page.

So I'm trying to do the menu on the left as a server side include in javascript but I can't seem to design it the way I want it. I tried to put CSS on it but it won't work. I guess I can only choose one at a time. can anyone help me make a menu with javascript like the one on my page. So I only have to call it once on my each page like this:

<script language="JavaScript" type="text/javascript" src="menu.js"></script>
meloncrack is offline
Reply With Quote
View Public Profile Visit meloncrack's homepage!
 
 
Register now for full access!
Old 09-18-2008, 09:52 PM Re: Trying to Make a JavaScript Server Side Include Menu
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
It won't be considered a SERVER SIDE include, if you do it with JavaScript. Anything JavaScript is referred to as CLIENT SIDE. Although inserting information on each page with JavaScript is definitely possible, you should be aware that it will be much slower than actually doing it from the server. Have you looked into doing this with a server-language such as ASP or PHP?
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 09-18-2008, 09:55 PM Re: Trying to Make a JavaScript Server Side Include Menu
Experienced Talker

Posts: 40
Location: i live with your mom
Trades: 0
No I didn't like the Idea of ASP you have to buy a bunch of microsoft products. I tried the SSI include suggestions throughout these boards that I posted and it won't work. I installed something called WAMP and it won't work.
meloncrack is offline
Reply With Quote
View Public Profile Visit meloncrack's homepage!
 
Old 09-18-2008, 09:56 PM Re: Trying to Make a JavaScript Server Side Include Menu
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
And PHP? Did you consider that? It is free, and quite powerful.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 09-18-2008, 10:02 PM Re: Trying to Make a JavaScript Server Side Include Menu
Experienced Talker

Posts: 40
Location: i live with your mom
Trades: 0
Yeah I'm reading the tutorials on the w3schools website but they don't teach you how to do includes.
meloncrack is offline
Reply With Quote
View Public Profile Visit meloncrack's homepage!
 
Old 09-18-2008, 10:06 PM Re: Trying to Make a JavaScript Server Side Include Menu
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
http://www.w3schools.com/PHP/php_includes.asp
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 09-18-2008, 10:15 PM Re: Trying to Make a JavaScript Server Side Include Menu
Experienced Talker

Posts: 40
Location: i live with your mom
Trades: 0
Dang bro thanks you rock.
meloncrack is offline
Reply With Quote
View Public Profile Visit meloncrack's homepage!
 
Old 09-19-2008, 06:45 AM Re: Trying to Make a JavaScript Server Side Include Menu
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
<link type="self promo">
http://www.candsdesign.co.uk/articles/coding/includes/
</link>
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Trying to Make a JavaScript Server Side Include Menu
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.45572 seconds with 12 queries