HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Navbar for ssi
Post new topic   Reply to topic    HTML Help Forum Index -> SSI
View previous topic :: View next topic  
Author Message
rserge



Joined: 12 Aug 2006
Posts: 56

PostPosted: Wed Oct 11, 2006 11:29 am     Navbar for ssi Reply with quote

Why is there extra spacing beteen the top row and the bottom row?
Also the top row appears to indented on my browser.
The space between the rows should be the same as the white vertical lines between th buttons.
I was wanting to use this in SSI when I am done with it.
These will contain Javascript dropdown menus. Is there any conflicts with SSI, having Javascript?

Thanks.

http://24.199.231.51/navbar.htm
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8260
Location: Castle Rock CO USA

PostPosted: Wed Oct 11, 2006 1:52 pm     Reply with quote



Looking at the parsed source code, you have
Code:
<td style="border-collapse: collapse width="748">
when it should be
Code:
<td style="border-collapse: collapse; width=748px">
And then you have
Code:
<</table>      img src="images/PSDs/bb_left.gif" width="28" height="15" /><img src="images/PSDs/b_designtips.gif" width="121" height="15" /><img src="images/PSDs/b_new.gif" width="103" height="15" /><img src="images/PSDs/b_where.gif" width="111" height="15" /><img src="images/PSDs/b_media.gif" width="129" height="15" /><a href="mailto:infoatwiltoncordrey.com"><img src="images/PSDs/b_contact.gif" width="104" height="15" border="0" /></a><img src="images/PSDs/b_aboutwc.gif" width="145" height="15" /></td>
but you do not have an opening <td> tag in this.

As long as you do everything correctly, there is no problem using includes in JavaScripts.

_________________
Corey
Toll Fax Numbers | Merchant Accounts
rserge



Joined: 12 Aug 2006
Posts: 56

PostPosted: Fri Oct 13, 2006 11:42 am     thanks. Reply with quote

I got 'er fixed up.

Is SSI include coding the same for anything you want to include?
I am looking at resources online now, trying to make sense of it.
I think I am catching on.
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8260
Location: Castle Rock CO USA

PostPosted: Fri Oct 13, 2006 12:41 pm     Reply with quote

Yes - for example, we have a footer on every page. I needed to update it for our company. So instead of me changing 300 pages, I changed one. We use a navigation structure as well. When a new page is added or one is deleted, we only have to change the nav page.

Just remember that you only need the code and not <body>, <head> tags. if you take a look at http://www.loudcommerce.com/includes/menu.html and the source code, you will only see the lists, but then when you look at http://www.loudcommerce.com/ you see the menu formatted from the style sheet

_________________
Corey
Toll Fax Numbers | Merchant Accounts
rserge



Joined: 12 Aug 2006
Posts: 56

PostPosted: Fri Oct 13, 2006 1:32 pm     I think I am seeing it now.... Reply with quote

So on my navbar file,
Only include the image of the button, followed by the text link of the drop down items.
(You used CSS(style Sheet) to create drop down?)
I used behaviors in dreamweaver.
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8260
Location: Castle Rock CO USA

PostPosted: Fri Oct 13, 2006 3:03 pm     Reply with quote

That is correct. You might check out Suckerfish Dropdowns and Accessible Website Menu for some better menus than DW's.

_________________
Corey
Toll Fax Numbers | Merchant Accounts
rserge



Joined: 12 Aug 2006
Posts: 56

PostPosted: Sun Oct 15, 2006 6:05 pm     Reply with quote

http://www.wiltoncordrey.com/SSI/navbartest.asp
Here is the page where I inserted the SSI. It only contains the SSI, nothing else in the body...only as a test.

http://www.wiltoncordrey.com/includes/navbar.htm
Thisis the SSI file.

The mesage I am getting...
Active Server Pages error 'ASP 0131'
Disallowed Parent Path
/SSI/navbartest.asp, line 10
The Include file '../includes/navbar.htm' cannot contain '..' to indicate the parent directory.

I will continue to work on it. Sorry I am so difficult here. Its my first go at SSI.
rserge



Joined: 12 Aug 2006
Posts: 56

PostPosted: Sun Oct 15, 2006 6:11 pm     Reply with quote

I put both files in same folder, and it brought the ssi file into the other page.
Was that my problem?
rserge



Joined: 12 Aug 2006
Posts: 56

PostPosted: Sun Oct 15, 2006 6:22 pm     Thank you Corey. Reply with quote

I moved the navbar.htm (include file to another location)
In DW I selected "Relative to Site" rather than Document

I found that in another tut.

Do you have an explanation on how you converted your include file into a drop down?
Going from bullets to a drop down?
rserge



Joined: 12 Aug 2006
Posts: 56

PostPosted: Sun Oct 15, 2006 6:33 pm     Reply with quote

So when youi use SSI it does not show the SSI line<!....>
It actually brings in the code of the elements being brought into the page.

If my include file needs to contain JS in the heading...but an include file does not have a heading.

So how do i create drop downs?
If u go to www.schnadig.com They have JS for their menus. I am sure they used SSI for their navbar. I may be wrong. They recently updated their navbar. Is there a way to know if a site uses includes?
rserge



Joined: 12 Aug 2006
Posts: 56

PostPosted: Sun Oct 15, 2006 7:06 pm     Reply with quote

The other thought is maybe they have the navbar in a template they created, and they are only updating the template?
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8260
Location: Castle Rock CO USA

PostPosted: Sun Oct 15, 2006 10:32 pm     Reply with quote

When including SSI / ASP you need to use something like
Code:
<!--#include file="includes/nav.html" -->
If you are going to include virtual paths, you need to to use something like
Code:
<!--#include virtual="/includes/nav.html" -->
In the nav.html, if you have multiple folders, etc you will need to use virtual links so that it always go back to the root, something like
Code:
<a href="/default.asp" title="E-Commerce Security">Home</a>

_________________
Corey
Merchant Account Blog | Merchant Accounts
rserge



Joined: 12 Aug 2006
Posts: 56

PostPosted: Mon Oct 16, 2006 8:39 pm     deleted. Reply with quote

deleted.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> SSI All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial