| View previous topic :: View next topic |
| Author |
Message |
rserge
Joined: 12 Aug 2006 Posts: 56
|
Posted: Wed Oct 11, 2006 11:29 am Navbar for ssi |
|
|
|
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
|
Posted: Wed Oct 11, 2006 1:52 pm |
|
|
|
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
|
Posted: Fri Oct 13, 2006 11:42 am thanks. |
|
|
|
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
|
Posted: Fri Oct 13, 2006 12:41 pm |
|
|
|
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
|
Posted: Fri Oct 13, 2006 1:32 pm I think I am seeing it now.... |
|
|
|
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
|
|
rserge
Joined: 12 Aug 2006 Posts: 56
|
Posted: Sun Oct 15, 2006 6:05 pm |
|
|
|
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
|
Posted: Sun Oct 15, 2006 6:11 pm |
|
|
|
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
|
Posted: Sun Oct 15, 2006 6:22 pm Thank you Corey. |
|
|
|
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
|
Posted: Sun Oct 15, 2006 6:33 pm |
|
|
|
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
|
Posted: Sun Oct 15, 2006 7:06 pm |
|
|
|
| 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
|
Posted: Sun Oct 15, 2006 10:32 pm |
|
|
|
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
|
Posted: Mon Oct 16, 2006 8:39 pm deleted. |
|
|
|
| deleted. |
|
|