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

  • SEARCH
  • Home
  • 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 6472111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:18:17+00:00 2026-05-25T06:18:17+00:00

I have a JavaScript issue when the page is viewed in IE only. I

  • 0

I have a JavaScript issue when the page is viewed in IE only. I get this:

object doesn’t support this property or method

The line in my JavaScript code that generates this error is:

var panels = $('collapser').getElements('div.menuTable');

The above code is trying to get all div elements with the class menuTable within the collapser element.

Seems like IE doesn’t like the getElements method!

Here’s is the relevant part of the page in HTML:

<div id="collapser" class="text2"> 
    <h2 class="menu">system features1</h2> 
    <div id="div145fgjd584rgd" class="menuTable">
     ...
    </div>
    <h2 class="menu">system features2</h2> 
    <div id="div2sf54685454rtyt" class="menuTable">
     ...
    </div>
</div>
  • 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-25T06:18:17+00:00Added an answer on May 25, 2026 at 6:18 am

    in IE 6, 7 and 8(in part), the Element.prototype is verbotten or elements just don’t benefit from changes to their prototype.

    As a workaround, MooTools add copies all Element.prototype methods to each IE element object when it gets accessed through a selector ($, $$) or when it is being created (Element constructor).

    Basically: $("collapser") or document.id("collapser") or new Element('div#collapser') will also copy the methods and setup element storage etc–it’s a one-off operation.

    Which leads me to believe that the $() function that you have is NOT the mootools one.

    For example:

    this.$ = document.getElementById;
    $("collapser").getElements("div"); // exception in IE6/7/8
    

    what version of mootools is it? console.log($); // is it the mootools one?

    you can also do:

    var panels = document.getElements('#collapser div.menuTable');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having an issue with rails involving javascript. Basically, I have the following code:
I have javascript code embedded inside a html template file. When I load this
I have some javascript code that loads images dynamically in a web page: imageSrc
ok i have a javascript object to control elements on my page such as
I have JavaScript code which copies the value of input file and paste it
I have a page where I can insert some javascript / jquery to manipulate
I have a bit of strange problem on this page: http://www.bluprintliving.com/locations it seems that
I have this problem with a link in an HTML page where the first
Here's my issue. I have a javascript function that update a div when i
I have a simple javascript (JQuery based) method that does some css magic to

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.