Results 1 to 3 of 3

Thread: DD Tab Menu (5 styles) - Done, but with Errors on page....

  1. #1
    Join Date
    Jan 2010
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Unhappy DD Tab Menu (5 styles) - Done, but with Errors on page....

    1) Script Title: DD Tab Menu (5 styles)

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

    3) Describe problem: I have tried to implement this on my website, but I get an error in the .js script file, and as a result, I get a message "ddtabmenu not defined". The page I am working with is

    http://store.indianfoodsco.com/groce...ItemId=AJID020

    From my (very) limited Javascript skills, using the debugger (and in ColdFusion Studio, I see the line

    [CODE]currentpageurl: window.location.href.replace("http://"+window.location.hostname, "").replace(/^\//, ""), //get current page url (minus hostname, ie: http://www.dynamicdrive.com/)[CODE]

    become green (signifying a comment) after the "//" in [ICODE].replace(/^\//,[ICODE]. I do not know if this is what is causing the problem....

    Please help!

    Vinay Mehta.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Did you modify ddtabmenu.js in any way? Looking at the version on your page, there are some extra characters that shouldn't be there. Try redownloading the .js file from the script page.
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    vmehta (01-05-2010)

  4. #3
    Join Date
    Jan 2010
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Resolved....

    Not intentionally - All I modified intentionally were the "true" and "false" on the first two lines. However, I did download the file to my computer, then uploaded to the server using WS-FTP pro, and then used ColdFusion Studio to modify the first two lines.

    So, I RDP'd to the server, and downloaded the .js file directly into the root directory, and did not edit it at all....now, it works!

    Either the uploading or the editing in CF Studio added the spurious characters.... I did try editing the first two lines using Notepad, and the code continued to work...

    Thanks for your help!

    Vinay

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
  •