javascript - getElements is not a supported property or method in IE -
I have a JavaScript problem when the page is viewable only in IE I get this:
< P> Object does not support this property or methodThe line of my javascript code generates this error:
var panel = $ (' Collapser '). GetElements ('div.menuTable');
The above code appears within
menu element
> It looks likegetElements Do not like the method!
Here is the relevant part of the HTML page:
& lt; Div id = "collapser" class = "text2" & gt; & Lt; H2 class = "menu" & gt; System Features 1 & lt; / H2 & gt; & Lt; Div id = "div145fgjd584rgd" class = "menuTable" & gt; ... & lt; / Div & gt; & Lt; H2 class = "menu" & gt; System Features 2 & lt; / H2 & gt; & Lt; Div id = "div2sf54685454rtyt" class = "menuTable" & gt; ... & lt; / Div & gt; & Lt; / Div & gt; In IE 6, 7 and 8 (in part), Element. Prostitip is
Subject Or elements do not only benefit from the changes in their prototypes
As an alternative solution, MooTool is being created through each selector ($, $$) or when each IE element is in the object All copies of the
Element.prototype methods. (Element Constructor).
Originally:
$ ("collapser") or
document.id ("collapser") or
new element ('Div # Collapser ') will also copy the methods and setup element storage etc. - this is a closed operation.
I believe that the
$ () function that you do not have is
For example:
This $ = Document.getElementById; $ ("Collapser") getElements ("div"). IE 6/7/8 in / exception /
What is the version of mitool?
console.log ($); // Is this a silence?
You can also:
var panel = document.getElements ('# Collapser div.menuTable');
Comments
Post a Comment