navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Free FrontPage Templates

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

SSI Help Needed

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> SSI Help Needed
Page: [1]
 
vision2000

 

Posts: 532
From: USA
Status: offline

 
SSI Help Needed - 11/12/2002 1:30:00   
I tried to follow the tutorial on this site, but can' t seem to get it to work.

Here' s what I did:

created a nav.htm file (for a dhtml menu) and saved it in the includes folder (removed all html, header and body tags)

Created a blank.shtm page and inserted
<!--#include virtual=" /includes/nav.htm" -->where I wanted the menu to go on the blank page.

I uploaded the includes folder and blank page to the server (FTP)

Results: no menu is showing.

BTW For this menu I also use a .css and .js file which are uploaded to the root folder (or should they be in the includes folder??)

So as you see I am confused and would appreciate your expert help.

Thank you,
Herman
Seventh

 

Posts: 1235
Joined: 8/4/2002
From: The Motor City
Status: offline

 
RE: SSI Help Needed - 11/12/2002 4:18:27   
Hi, vision2000.

My first question is does your host support SSI (Server Side Includes)?

If so, this may give you a better understanding of SSI.

SSI Tutorial from Big Nose Bird.com »

_____________________________

"go forth and create."

(in reply to vision2000)
Justjay

 

Posts: 697
From: Montreal, QC Canada
Status: offline

 
RE: SSI Help Needed - 11/12/2002 7:19:15   
Did you also change your extension to the correct SSI extension?

_____________________________

JustJay
thejehm.net Web Solutions
SAH Link Exchange
Serious About Hosting

(in reply to vision2000)
vision2000

 

Posts: 532
From: USA
Status: offline

 
RE: SSI Help Needed - 11/12/2002 7:52:32   
Yes, my host does support SSI and I named the blank page blank.shtm

I still can' t see where I have gone wrong.

Thanks,

Herman

(in reply to vision2000)
Reflect

 

Posts: 4769
From: USA
Status: offline

 
RE: SSI Help Needed - 11/12/2002 8:03:25   
quote:

BTW For this menu I also use a .css and .js file which are uploaded to the root folder (or should they be in the includes folder??)


For these I use the house keeping mentality. I have seperate sub folders. One for JS, one for CSS, Etc..

Brian

_____________________________


(in reply to Seventh)
Justjay

 

Posts: 697
From: Montreal, QC Canada
Status: offline

 
RE: SSI Help Needed - 11/12/2002 8:08:42   
Are you sure it doesn' t have to be .shtml?

_____________________________

JustJay
thejehm.net Web Solutions
SAH Link Exchange
Serious About Hosting

(in reply to vision2000)
Gil

 

Posts: 7533
From: North Carolina, USA
Status: offline

 
RE: SSI Help Needed - 11/12/2002 9:36:10   
quote:

I named the blank page blank.shtm


What is that? I' ve never heard od .shtm - should be .shtml

_____________________________

Gil Harvey, 1947-2004

(in reply to vision2000)
vision2000

 

Posts: 532
From: USA
Status: offline

 
RE: SSI Help Needed - 11/12/2002 10:56:49   
Thanks for your input - could you please check this page and see if I am missing something - a simple page to show the nav bar - but it is not showing up.

www.wwwebdesignz.com/blank.shtm

The .css .js and blank.shtm are all uploaded to the server.



Thank you,
Herman

(in reply to vision2000)
Justjay

 

Posts: 697
From: Montreal, QC Canada
Status: offline

 
RE: SSI Help Needed - 11/12/2002 11:04:56   
Gil - some hosts set up the server to parse .shtm and .sthml extensions by default

_____________________________

JustJay
thejehm.net Web Solutions
SAH Link Exchange
Serious About Hosting

(in reply to vision2000)
bobby

 

Posts: 11394
Joined: 8/15/1969
From: Seattle WA USA
Status: offline

 
RE: SSI Help Needed - 11/12/2002 11:05:29   
The .shtm extension is not being recognized by your server... (though shtm is as valid as htm for a page extension... as long as your server will parse it.)

Your page is not being parsed... to test it out, change it to blank.asp and see if it works... as long as you' re on a Windows server the .asp extension will be recognized and will parse the include...

If not, change to .shtml

If that doesn' t work, try changing from " include virtual" to " include file"

Good luck! :)

_____________________________

If con is the opposite of pro, is Congress the opposite of progress?


:)

(in reply to vision2000)
vision2000

 

Posts: 532
From: USA
Status: offline

 
RE: SSI Help Needed - getting there.. - 11/12/2002 11:33:26   
Thanks Bobby - changing the page to shtml made the nav bar appear (I tried the other ways you suggested which did not work)

http://www.wwwebdesignz.com/blank.shtml

HOWEVER

Now I have lost the correct color for the links - it should be like this:

www.wwwebdesignz.com/test.htm

Could this have something to do with having an index.html page and blank.shtml page - is there a conflict in the extensions?

or the path of the .css .js scripts

Thank you again,
Herman
PS My server is not a windows server

(in reply to vision2000)
Justjay

 

Posts: 697
From: Montreal, QC Canada
Status: offline

 
RE: SSI Help Needed - 11/12/2002 11:47:42   
Unless you are going to be sending people to ../blank.shtml - do not worry about as it will take the CSS and JS attributes from the page you include it into...

However yes that is the problem the path to the .css and .js are not correct....probably a ../ that is either extra or missing....

_____________________________

JustJay
thejehm.net Web Solutions
SAH Link Exchange
Serious About Hosting

(in reply to vision2000)
vision2000

 

Posts: 532
From: USA
Status: offline

 
RE: SSI Help Needed - you were right! Now... - 11/12/2002 12:11:46   
Thank you very much - that was it!

One more question, if you don' t mind

Can I put the .css and .js files into the includes file also?
or make separate folders for them?

The idea is to just have one includes page that contains nav.htm .css .js instead of having to enter the same header for each page?

I hope this question is clear.

Herman

(in reply to vision2000)
bobby

 

Posts: 11394
Joined: 8/15/1969
From: Seattle WA USA
Status: offline

 
RE: SSI Help Needed - 11/12/2002 12:57:16   
You can place them in any file you like, as long as you reference the correct file path for the link...

You can place anything at all into an SSI file... when the server parses it the code from the " included" page will be edited into the " parent" page as if it were typed there from the start...


Glad it' s working!


< Message edited by bobby -- 11/12/2002 12:58:39 PM >


_____________________________

If con is the opposite of pro, is Congress the opposite of progress?


:)

(in reply to vision2000)
vision2000

 

Posts: 532
From: USA
Status: offline

 
THANK YOU ALL! - 11/12/2002 13:16:10   
Thank you very much Bobby and others - give yourself a big pat on the back (flowers will arrive soon:-)

I hope you realize what an incredible help you were, which saved me oodles of time tearing my hair out (what' s left of it).

Now take a break and eat some cake - you all deserve it!

Have a great day!

Herman

(in reply to vision2000)
vision2000

 

Posts: 532
From: USA
Status: offline

 
RE: SSI Help Needed - follow-up question - 11/13/2002 13:23:41   
How do I include the menu.css and virtualmenu.js files as includes in the header tags of the www.wwwebdesignz.com/blank.shtml/ page?

I dropped these 2 files into the " includes" folder.
I entered this code between the header tags in the /blank.shtml page.

<!--#include virtual=" /includes/virtualmenu.js" -->
<!--#include virtual=" /includes/menu.css" -->

However when I upload the includes folder and the /blank.shtml page, my drop-down menu does not appear.

Have I got the paths wrong?

Your expert advice please.

Thank you,
Herman

(in reply to vision2000)
bobby

 

Posts: 11394
Joined: 8/15/1969
From: Seattle WA USA
Status: offline

 
RE: SSI Help Needed - 11/13/2002 16:15:28   
Those types of files use a relative link that references the content of that file for use within the page that is calling for it... like so:

<script language=JavaScript1.2 src=" virtualmenu.js" >
</script>

<link rel=" stylesheet" type=" text/css" href=" menu.css" >



An Include page, on the other hand, takes whatever is contained in the file and copy > pastes it into your web page before it is sent to the browser...

<!--#include file=" menu.css" -->

(This will take all the CSS code from your .css file and copy > paste it into your page... which won' t mean a thing to your browser...)

Since the .js and .css files won' t do you any good being " included" in the page, you must reference them as above...

There should be some instructions or a template with the menu script you are using that will show you properly how to insert them...

Includes are very handy for " global" changes to recurring features in your site. I use them with a JS menu... placing the menu script and the sub-menu script into Include files and then including them on my page...

The .js file that does the work can' t be on an include page...

If you want, send me an email and I' ll reply with a page that I' ve done using something similar so you can see how I did it...





_____________________________

If con is the opposite of pro, is Congress the opposite of progress?


:)

(in reply to vision2000)
vision2000

 

Posts: 532
From: USA
Status: offline

 
RE: SSI Help Needed - 11/13/2002 16:57:52   
Thanks for your explanation Bobby
I tried using <!--#include file=" menu.css" --> then the nav bar disappeared.

Confused by this

The .js file that does the work can' t be on an include page...

Could you clarify please

Thanks,
Herman
surfin120@aol.com

(in reply to vision2000)
Page:   [1]

All Forums >> Web Development >> General Web Development >> SSI Help Needed
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts