Results 1 to 3 of 3

Thread: Slide-In Menu

  1. #1
    Join Date
    Dec 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Slide-In Menu

    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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The path to the page (red):

    Code:
    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):

    Code:
    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):

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

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Dec 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you for your detailed reply. Of course it worked.... =)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •