Reply
Trying to Make a JavaScript Server Side Include Menu
Old 09-18-2008, 08: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!
 
 
When You Register, These Ads Go Away!
Old 09-18-2008, 08:52 PM Re: Trying to Make a JavaScript Server Side Include Menu
wayfarer07's Avatar
I like pie

Posts: 3,355
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?
__________________
Wayfarer | jQuery Tooltip | Mapbox: the jQuery Map
Latest Project: Houston Movers
If Google is the Coca-Cola of Web search, Bing is RC Cola
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 09-18-2008, 08: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, 08:56 PM Re: Trying to Make a JavaScript Server Side Include Menu
wayfarer07's Avatar
I like pie

Posts: 3,355
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
And PHP? Did you consider that? It is free, and quite powerful.
__________________
Wayfarer | jQuery Tooltip | Mapbox: the jQuery Map
Latest Project: Houston Movers
If Google is the Coca-Cola of Web search, Bing is RC Cola
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 09-18-2008, 09: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, 09:06 PM Re: Trying to Make a JavaScript Server Side Include Menu
wayfarer07's Avatar
I like pie

Posts: 3,355
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
http://www.w3schools.com/PHP/php_includes.asp
__________________
Wayfarer | jQuery Tooltip | Mapbox: the jQuery Map
Latest Project: Houston Movers
If Google is the Coca-Cola of Web search, Bing is RC Cola
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 09-18-2008, 09: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, 05:45 AM Re: Trying to Make a JavaScript Server Side Include Menu
chrishirst's Avatar
Super Moderator

Posts: 26,384
Location: Blackpool. UK
Trades: 0
<link type="self promo">
http://www.candsdesign.co.uk/articles/coding/includes/
</link>
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | Crowded Nightclub? | Bits & Bobs
chrishirst is offline
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.10479 seconds with 13 queries