Expression Web and Frontpage
Expression Web and FrontPage


Search The Forums:
 
] ] ]
]
Site Navigation ] ]
]
] ]

] ] ]
]
Change Skin ] ]



Skins Found: 14
]
] ]

] ] ]
]
Search For ] ]

Search On:
All Words
Any Words
Phrase
]
] ]

] ] ]
]
Top 6 Recent Posts ] ]
View Last Post Tables
Last Post By: NancyL
Forum: FrontPage 2000, 2002, and 2003 Forum

Posted: 08 September 2010 at: 3:32pm

View Last Post FP2003 Form submit errors.
Last Post By: Scott K
Forum: FrontPage 2000, 2002, and 2003 Forum

Posted: 07 September 2010 at: 2:33am

View Last Post Page has gone blank
Last Post By: marioc
Forum: FrontPage 2000, 2002, and 2003 Forum

Posted: 03 September 2010 at: 1:00pm

View Last Post Uninstall EW1?
Last Post By: Joe R
Forum: Expression Web Forum

Posted: 02 September 2010 at: 9:13pm

View Last Post Apple conflict? Page Problem
Last Post By: Joe R
Forum: FrontPage 2000, 2002, and 2003 Forum

Posted: 02 September 2010 at: 9:06pm

View Last Post Bulletin board
Last Post By: Joe R
Forum: General Computing and Web Development

Posted: 01 September 2010 at: 7:50pm

]
] ]

] ] ]
]
Welcome Guest ] ]
Name:
Pass:
Auto Login
Add me to Active Users list
Yes  No

Forgot password? | Register
]
] ]

] ] ]
]
Top Posters ] ]
Username Posts
Joe R 6369
Corey Bryant 4267
wet-inc 1701
mental mickie 1695
Allan Webber 1228
DarrylO 1222
hhammash 978
FP Guy 917
AMysticWeb 725
LakeGator 537
]
] ]

] ] ]
]
Member(s) Visited ] ]
Total: 0 
No matches found
]
] ]

] ] ]
]
Online Activity ] ]
People Online: 10
Guest(s): 10
Member(s): 0
Memberships: 3442
The Newest Member is Scott K
]
] ]

] ] ]
]
Ads ] ]
]
] ]

   
FrontPage 2000, 2002, and 2003 Forum
 Expression Web and FrontPage ForumยปFrontPage 2000, 2002, and 2003 Forum
Subject Topic: Server Side Includes Post ReplyPost New Topic
Forum Jump  
] ] ]
]
Author
Message Prev Topic | Next Topic 
Corey Bryant
Forum Admin
Avatar

Forum Admin

Joined: 05 June 2003
National Flag of United States United States
Posts: 4267
Posted: 29 February 2008 at 3:23pm | IP Logged Quote Corey Bryant

Well there are actually at least six ways:

SSI - and using the extension shtml or shtm (server side)
ASP - using the extension asp (server side)
PHP - using the extension php, phtml, phtm (server side)
JavaScript - using the extension html or htm (client side)
Ajax - more information Ajax Includes Script
Frames

They depend on your server and the way it is set up.  Including the file is is basically like
SSI

Code
<!--#include file="includes/nav.html" -->

ASP
Code
<!--#include file="includes/nav.html" -->

PHP
Code
<?php include("includes/nav.html"); ?>

JavaScript
Code
<script src="includes/nav.js"></script>
(With JavaScript though, some search engines might not be able to read it and I do not recommend it.  This should be used only if your server cannot support SSI, ASP, PHP and / or you need to keep your html extensions on your files.)

With the server side the file is parsed on the server before being rendered in the browser.  The nav.html would have your code that is your navigation only - for example:

Code
| <a href="/default.asp">Home</a> | <a href="/about.asp">About</a> | <a href="/contact.asp">Contact</a> |
And that would be it - nothing else is needed since everything else will be pulled from the main page that is calling for the included content.

With the JavaScript, you it would be a bit different, you would save this as nav.js:

Code
<!--
document.writeln("| <a href=\"/default.asp\">Home</a> | <a href=\"/about.asp\">About</a> | <a href=\"/contact.asp\">Contact</a> |");
//-->
and then call it in the page like this:
Code
<script src="includes/nav.js"></script>
however, some search engines do not read JavaScript since it is a client side language is (if by chance) the user has JavaScript disabled, then they would not see the JavaScript.

And for ASP.NET (ASPX) file

Code
<%    
 Response.WriteFile ("Yourfile.inc")
%>

For the type of hyperlinks check out types of hyperlinks - I would recommend using Virtual if you do use the server side includes.

Check with your hosting company to see what server side includes they will support.



__________________
Corey
Expression Web Blog | My Merchant Account Blog | 800 Numbers
Back to Top Printable version View Corey Bryant's Profile Search for other posts by Corey Bryant Visit Corey Bryant's Homepage
 
]
] ]
Forum Jump  

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic

] ] ]
]
  ] ]
Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum
Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide
]
] ]

] ] ]
]
This page was generated in 0.6563 seconds. Powered by SOOP Portal Raven 1.0
]
] ]