Link to home
Start Free TrialLog in
Avatar of catonthecouchproductions
catonthecouchproductionsFlag for United States of America

asked on

uncaught exception: [object Object] on script

I seem to get this error:
uncaught exception: [object Object]

I am trying to implement this effect: http://www.filthyrichclients.org/

My code seems to all match up and I am not sure why its not working.

All menu items needs to end in menu according to JS file and mine to and then the content need to end in pane and mine do as well.

CODE:

<ul class="list_name" id="menu">
                        <li id="dontbail-menu">Don't Bail</li>
                        <li id="sifted-menu">Sifted Records</li>
                        <li id="skithevalley-menu">Ski The Valley</li>
                        <li id="dw-menu">DW - GET FROM SEAN</li>
                        <li id="simple-menu">Simple</li>
                        <li id="eurospa-menu">Eurospa</li>
                        <li id="aldrighetti-menu">Aldrighetti Logging</li>
                        <li id="monkeyhouse-menu">Monkey House</li>
                        <li id="surgery-menu">Orthopedic Surgery Center</li>
                        <li id="orchard-menu">200 Orchard</a></li>
</ul>

HTML CONTENT:

<!--LOGOS FOR ALDRIGHETTI-->
            <a name="aldrighetti"></a>
            <div id="aldrighetti-pane" class="section">
                  <ul class="motion">
                        <li><a href="images/logos/full/aldrighetti/aldrighetti-1.png" rel="lightbox"><img src="images/logos/aldrighetti/aldrighetti-1.png" alt="aldrghetti"/></a></li>
                        <li><a href="images/logos/full/aldrighetti/aldrighetti-2.png" rel="lightbox"><img src="images/logos/aldrighetti/aldrighetti-2.png" alt="aldrghetti"/></a></li>
                        <li><a href="images/logos/full/aldrighetti/aldrighetti-3.png" rel="lightbox"><img src="images/logos/aldrighetti/aldrighetti-3.png" alt="aldrghetti"/></a></li>
                        <li><a href="images/logos/full/aldrighetti/aldrighetti-4.png" rel="lightbox"><img src="images/logos/aldrighetti/aldrighetti-4.png" alt="aldrghetti"/></a></li>
                  </ul>
</div>

JS: http://www.flanels.com/js/scrolling.js

Any suggestions on what I can do?

URL TO PAGE: http://www.flanels.com/?p=logos
Avatar of GoofyDawg
GoofyDawg
Flag of United States of America image

When does the exception occur? When the page loads? When you click a menu item?
i'm guessing this line is causing you some trouble:

VerticalAccordion.activate($$('navc .accordion_toggle')[0]);

if it interacts with page elements then you should call it onload... just putting it in the head there means it will execute before the page has rendered and if it references page elements lower down it will not find them...
Avatar of catonthecouchproductions

ASKER

So that line controls toggling the menu, but then i have the script that Ia m trying to make scroll horizontal like this page.

http://www.filthyrichclients.org/

But I the way i have it I think it is that, or is it the accordion?

Ryan
Any reason why that is doing that?

Thanks,
Ryan
ASKER CERTIFIED SOLUTION
Avatar of basicinstinct
basicinstinct
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I changed the name of that to Horizontal, That is the just variable name, I dont think that will effect it, any other suggestions?

The second link is the one I am using.

That first one! Is there a way you could show me a quick example on how to work that effect, I have been trying and cant, using optionto/optionfrom?

Ryan

Ryan
Sorry for posting my name twice, haha.