help with external ddaccordion.js file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • TheLink
    Second Lieutenant

    • Apr 2009
    • 126

    help with external ddaccordion.js file

    Hi all,

    I have a script from DynamicDrive for an Accordion style menu which requires the external file "ddaccordion.js" and 2 .GIF images. This is the link to the script and instructions page and you will see how the menu is supposed to behave.

    I have implemented the script into a HTML box on this page www.thelinkdentalpersonnel.com/experiment.php and added the content with no problems. But the .GIF images and the .js file (saved into the same directory as all my BV files, folders and images as well as desktop) aren't being detected/referenced and the Acccordin menu is not functioning as it should.

    NB: I am also using the HTML Editor software from CoffeeCup //not used to build pages for website but just to edit and experiment with DHTML before applying to BV pages// and repeated all the instructions given by DynamicDrive and everything works fine in the CoffeeCup HTML editor.

    I found a post to one of the threads in a BV forum (similar problem) and tried following their instructions but no success. This is the post:

    "So, on that DynamicDrive page, you'll want to right-click on the text "jquery.magnifier.js" and select "Save As" and choose a location on your computer (might be best to put it on the desktop) where you can easily find it. Next:

    1) log into your Vodahost cPanel
    2) click on File Manager
    3) In the "File Manager Directory Selection" window, click the last radio button (beside "Document Root For")
    4) Just below "Document Root For", click the dropdown menu and choose the domain of the site where you want the DynamicDrive tool to appear. Click the grey "Go" button
    5) In the row of icons near the top of the page, click "Upload" icon (looks like a file folder with a green arrow in front of it)
    6) On the new page you'll get, click "Choose" and navigate to wherever you saved the "jquery.magnifier.js" file and double click to select it.
    7) cPanel should automatically begin uploading the file you selected to the domain you specified.

    Repeat this process for the other file that DynamicDrive says you need to upload. Once you have both of them uploaded to the proper directory in your cPanel, you should be able to implement the DynamicDrive tool on a BV page. "


    These are the files that I uploaded to the 'Document Root'.

    C:\fakepath\silvergradient.GIF: 1.48 KB: 100% Complete

    C:\fakepath\silvergradientover.GIF: 1.47 KB: 100% Complete

    C:\fakepath\ddaccordion.js: 12.97 KB: 100% Complete

    I dont know what fakepath is but wondering if its supposed to be that?
    I can see the accordion.js, silvergradient.GIF and silvergradientover.GIF in the 'Document Root' and the 'Public FTP Root - Public_HTML' so they are there. Have tried changing the permissions to 755 but no difference.

    I recognise the need to possibly change the file path so I have tried a miriad of possibilites but the one that seems logical is "public_html/silvergradient.gif" perhaps or something else?? eg:

    <style type="text/css">
    .*****menu{<img src="something/silvergradientover.GIF"><img src="something/silvergradient.GIF">
    margin: 10px;
    padding: 0px;
    width: 251px; /*width of menu*/
    border: 0px solid #9A9A9A;
    }


    Obviously gone wrong somewhere and being such an ametuer, I have possible missed something really obvious.

    Any assistance is appreciated.
    Last edited by TheLink; 02-03-2010, 03:17 AM. Reason: add text
    Rowena

    The Link Dental Personnel
    www.thelinkdentalpersonnel.com
  • TheLink
    Second Lieutenant

    • Apr 2009
    • 126

    #2
    Re: help with external ddaccordion.js file

    Have got the silvergradient.gif images working in the Accordion menu but still no luck with the ddaccordian.js file which is required to make the menu function as it should.
    Rowena

    The Link Dental Personnel
    www.thelinkdentalpersonnel.com

    Comment

    • zuriatman
      Moderator

      • Sep 2006
      • 3025

      #3
      Re: help with external ddaccordion.js file

      Try going to your cPanel> Hot Link and add the .js file extension.
      www.siapamoyanganda.com/
      Malaysian Family Tree Website From the
      State of Johor.

      HAPPY ARE THOSE WHO DREAM DREAMS AND ARE READY TO PAY THE PRICE TO MAKE THEM COME TRUE.

      Comment

      • TheLink
        Second Lieutenant

        • Apr 2009
        • 126

        #4
        Re: help with external ddaccordion.js file

        Originally posted by zuriatman View Post
        Try going to your cPanel> Hot Link and add the .js file extension.
        I tried that but it hasn't helped at all.
        Rowena

        The Link Dental Personnel
        www.thelinkdentalpersonnel.com

        Comment

        • TheLink
          Second Lieutenant

          • Apr 2009
          • 126

          #5
          Re: help with external ddaccordion.js file

          11/02/2010

          I still need help with this please!!!
          Rowena

          The Link Dental Personnel
          www.thelinkdentalpersonnel.com

          Comment

          • flashman22
            Private

            • Feb 2010
            • 1

            #6
            Re: help with external ddaccordion.js file

            Alright brotha, I just figured this out myself, so hopefully this helps.

            Looking at your source code, make sure the line at the top:

            -script type="text/javascript" src="ddaccordion.js"-

            has a source equal to your website + file, so that:

            -src="http://website.com/ddaccordion.js"-

            Honestly, that's the only thing I noticed, and the only thing that is different between my code that is working and your code that isn't.

            Comment

            • TheLink
              Second Lieutenant

              • Apr 2009
              • 126

              #7
              Re: help with external ddaccordion.js file

              Originally posted by flashman22 View Post
              Alright brotha, I just figured this out myself, so hopefully this helps.

              Looking at your source code, make sure the line at the top:

              -script type="text/javascript" src="ddaccordion.js"-

              has a source equal to your website + file, so that:

              -src="http://website.com/ddaccordion.js"-

              Honestly, that's the only thing I noticed, and the only thing that is different between my code that is working and your code that isn't.
              When I saw your reply to this post, I had a glimmer of hope.....but I tried your suggestion and still no luck. Man I really thought that would work too cause the only thing I can think is that it's not recognising the file path or something, but just can't figure out why.

              Thank you so much for trying to help.
              Rowena

              The Link Dental Personnel
              www.thelinkdentalpersonnel.com

              Comment

              • TheLink
                Second Lieutenant

                • Apr 2009
                • 126

                #8
                Re: help with external ddaccordion.js file

                Finally figured it out. In case anyone else does have this problem. Thank you to Flashman, your suggetion did actually help however there was one other small (however obviusly significant) detail that was over looked.

                I was missing an </script> tag. So that was that, all working great.

                Such a shame I gave up on the idea as no-one was able to help and finished my website without the accordion menu!!
                Rowena

                The Link Dental Personnel
                www.thelinkdentalpersonnel.com

                Comment

                Working...
                X