We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25551 ☆ A M B ☆
    • 1,231 Posts
    Hey folks, I followed the wiki on the accordion menu and everything seems to be working apart from the menu won’t expend when I click a link.

    When the page loads, you see the menu extended and then compacted so it appears to be setup correctly. I have included the scripts etc.

    Firebug is throwing up an error each time I click on a link to try and open the accordion.

    Effect is not defined
    accordion(h3)sitemap.html (line 69)
    onclick(click clientX=0, clientY=0)sitemap.html (line 1)
    [Break on this error] el.id = ’visible’;

    Does this make any sense to you? yes I’m a noob.

    I stuck the accordion on this page for testing

    http://www.rossco-designs.com/sitemap.html

    Thanks
      Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
      AugmentBLU - MODX Partner

      BLUcart - MODX Revolution E-Commerce & Shopping Cart
      • 25551 ☆ A M B ☆
      • 1,231 Posts
      I am getting a different error now than before

      Element.getStyle is not a function
      makePositioned(div#panel9-body.panel_body)prototype.js (line 1213)
      findOrStore()prototype.js (line 970)
      beforeStartInternal(Object element=div#panel9-body.panel_body options=Object)effects.js (line 763)
      event("beforeStart")effects.js (line 331)
      start(Object scaleX=false scaleY=true scaleContent=false)effects.js (line 284)
      initialize(div#panel9-body.panel_body, 1)effects.js (line 432)
      create()prototype.js (line 20)
      SlideUp(div#panel9-body.panel_body)effects.js (line 777)
      accordion(h3)index.php (line 60)
      onclick(click clientX=0, clientY=0)index.php (line 1)
      [Break on this error] var pos = Element.getStyle(element, ’position’);

      Any ideas what I could of done wrong?
        Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
        AugmentBLU - MODX Partner

        BLUcart - MODX Revolution E-Commerce & Shopping Cart
        • 25979
        • 178 Posts
        I looked over your site. Where do you have js for accordion. Coldn’t find it.
          //Why use windows since there is a door?//
          • 25551 ☆ A M B ☆
          • 1,231 Posts
          I gave up trying to figure it out.

          But i’ll put it back up now to see if you can see what is wrong.

          www.rossco-designs.com/test.html

          Thanks
            Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
            AugmentBLU - MODX Partner

            BLUcart - MODX Revolution E-Commerce & Shopping Cart
            • 25979
            • 178 Posts
            Doesn’t work form me now at all. What happens if you drop another menu js?
              //Why use windows since there is a door?//
              • 25979
              • 178 Posts
              You’re sure bolded (in code doesn’t show bold, so it’s marked [b ]~[/b ] - remove spaces) part should be right there?

              <div id="panel10">
                  <h3 onClick="accordion(this)">Services & Hosting</h3>
                  <div id="panel10-body" class="panel_body">
              
                      <div>
                          <ul><li><a href="/whatisHosting.html" title="What is hosting" [b]whatisHosting[/b]>What is hosting?</a></li>
              <li class="last"><a href="/hosting.html" title="Hosting Packages" >Hosting Packages</a></li>
              </ul>
                      </div>
                  </div>
              </div>
              <div id="panel8">
                  <h3 onClick="accordion(this)">Register and Account Area</h3>
              
                  <div id="panel8-body" class="panel_body">
                      <div>
                          <ul><li><a href="/register.html" title="Register" >Register</a></li>
              <li class="last"><a href="/editdetails.html" title="Edit Details" [b]Edit Details[/b]>Edit Details</a></li>
              </ul>
                      </div>
                  </div>
              </div>
                //Why use windows since there is a door?//
                • 25551 ☆ A M B ☆
                • 1,231 Posts
                I don’t understand what you mean sorry?
                  Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                  AugmentBLU - MODX Partner

                  BLUcart - MODX Revolution E-Commerce & Shopping Cart
                  • 25979
                  • 178 Posts
                  maybe it’s just me. To much work for today.
                  two things.
                  1. Did you check accordion menu functioning without other menu’s js’s ?
                  2. I don’t reaaly think there should be bolded part in ’a’ call <a href="/whatisHosting.html" title="What is hosting" whatisHosting>What is hosting?</a>
                    //Why use windows since there is a door?//
                    • 25551 ☆ A M B ☆
                    • 1,231 Posts
                    I did try it without any extra JS files and it still didn’t work.

                    I don’t know what else to try and i’ve not seen a working version of it. I’ve seen others having trouble with it so i’m starting to give up on it now. ha!
                      Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                      AugmentBLU - MODX Partner

                      BLUcart - MODX Revolution E-Commerce & Shopping Cart
                      • 25979
                      • 178 Posts
                      look how it works - link in PM.
                        //Why use windows since there is a door?//