Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7163259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:52:24+00:00 2026-05-28T13:52:24+00:00

this is the error i get: Uncaught TypeError: Object #<HTMLDivElement> has no method this

  • 0

this is the error i get:

Uncaught TypeError: Object #<HTMLDivElement> has no method

this is the code in the domready function:

    $$('.accordion_content').slide('hide');
    $$('.accordion_header').addEvent('click', function(e) {
        this.getParent().getElement('.accordion_content').slide('toggle');
        this.toggleClass('header_highlight');
    });
        //  set horizontal slide for sidebar
    $('priceNPay').slide('hide', 'horizontal');
    $('theSidebar').style.backgroundColor = 'green';
        //  THIS IS WHERE IT ERRORS OUT... WHY!?
    $('theSidebar').addevent('click', function(e) {
        this.getElement('priceNPay').slide('toggle');
        this.toggleClass('header_highlight');
    });

the first chunk of code works fine. toggles like mad on all <div> elements with the relevant class. the second chunk of code hides the <div>, changes the <div>‘s colour…but errors out when trying to do the addEvent.

WHYYYY!!!????

the structure of the the only difference i can think would be relevant…if it didn’t work:

<div id='someName'>
  <h1>title text</h1>
  <div id='someOtherName'>  (on the sidebar, this is an 'article' element)
    <p>some text</p>
  </div>
</div>

what i’m not following is why it’ll hide, but then won’t target for the toggle…?

thanks gang.

WR!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:52:24+00:00Added an answer on May 28, 2026 at 1:52 pm

    You are using addevent instead of addEvent.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get the following error: Uncaught TypeError: Object #<an Object> has no method 'indexOf'
I get the error Uncaught TypeError: Object #<HTMLSpanElement> has no method 'html' When I
i get this error {Method 'System.DateTime ConvertTimeFromUtc(System.DateTime, System.TimeZoneInfo)' has no supported translation to SQL.}
I'm having an issue where I get an error that says... Uncaught TypeError: Object
I use prototype.js and jquery together and I get this error message Uncaught TypeError:
I continue to get this error: Object '%s' cannot be renamed because the object
I'm trying to create an object called List. This object has a method add
I am using this plugin and in some pages I get an Uncaught TypeError:
Why I get this error? Page not found (404) Using the URLconf defined in
I always get this error when trying to compile my file with Boost::GIL PNG

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.