PDA

View Full Version : Slide-In Menu



jdpatterson74
12-25-2007, 10:30 PM
1) Script Title: Dynamic-FX Slide-In Menu (v 6.5)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/davidmenu.htm

3) Describe problem:

I installed the menu and everything works fine except I have a question about:

I am using Visual Studio and going thru a localhost to see how my web site looks as I edit the codes. In the menu items link to a web page within my web and the first link works fine but when I try the link on the page I went to, it does not work.

Example:
ssmItems[1]=["Jobs", "Category/jobs.aspx", ""]
ssmItems[2]=["Jewelry", "Category/Jewelry.aspx",""]

Loading site.master I can click on either "Jobs" or "Jewelry" and both will work. Once I get to that page in my web site (each page has the side menu) and click on either one I receive a load error.

I am probably just missing something small, thanks for your help!!


Joshua

jscheuer1
12-26-2007, 09:10 AM
The path to the page (red):



ssmItems[1]=["Jobs", "Category/jobs.aspx", ""]
ssmItems[2]=["Jewelry", "Category/Jewelry.aspx",""]

Must be valid in relation to the page that the menu is on. So, say you are in the root and hit:

Category/jobs.aspx

Now you are in the Category folder. If then you hit:

Category/Jewelry.aspx

the browser will be looking for:

Category/Category/Jewelry.aspx

which doesn't exist. You must either put all of your pages in one folder, or use the absolute path.

If you are using the sort of local host that sees your base folder for the project as the root, you can do this (the red / represents the root folder):


ssmItems[1]=["Jobs", "/Category/jobs.aspx", ""]
ssmItems[2]=["Jewelry", "/Category/Jewelry.aspx",""]

Otherwise, you would need to use the full (absolute) path from the root of the hard drive. Something like (I don't know the exact path on your drive):


ssmItems[1]=["Jobs", "file://localhost/C:/webwork/Category/jobs.aspx", ""]

jdpatterson74
12-27-2007, 03:51 AM
Thank you for your detailed reply. Of course it worked.... =)