Displaying 1 result from an estimated 1 matches for "content_menu".
Did you mean:
content_en
2008 Apr 22
2
Prototype's cumulativeOffset() is not a function
...js" type="text/javascript"></script>
<script src="my_js_file.js" type="text/javascript"></script>
my_js_file.js looks like this:
Event.observe(window, ''load'', loadTasks, false);
function loadTasks() {
var foo = $(''content_menu'').cumulativeOffset()[0];
alert(foo);
}
And in my html I have
<div id="content_menu">blah</div>
But when I attempt to load this page, I get a script error. I use
Firebug for debugging, and it tells me:
"$(''content_menu'').cumulativeOffset is...