Object doesn't support this property or method (LINE17)

61 views
Skip to first unread message

KingKong99

unread,
Sep 19, 2011, 5:50:18 AM9/19/11
to prototype-s...@googlegroups.com
<html>
<head>
<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript" src="scriptaculous.js"></script>

</head>
<body>
<img src=mock_files/johnny_bravo.gif id=johny style="position: relative; float: left; ">
<table cellpadding=0 cellspacing=0 border=0 width=100% height=2000>
<tr>
<td>
</td>
</tr>
</table>
<script>
Event.observe(window, "scroll", function() {
cso = document.body.cumulativeScrollOffset();   // LINE 17 is here!!!
$('johny').setStyle('opacity: 0; filter: alpha(0%)').morph("opacity: 1; filter: alpha(100%) ; top:"+cso.top+"px",{duration: 0.4, delay: 0.4});

}); 
</script>
</body>
</html>


I have  the simple script above. It works very fine in Chrome but not in IE8. The error says "Object doesn't support this property or method : LINE 17"  

Thanks in advance for any help. 

Miguel Beltran R.

unread,
Sep 19, 2011, 10:00:36 AM9/19/11
to prototype-s...@googlegroups.com
Try with

cso = $(document.body).cumulativeScrollOffset(); 



--
________________________________________
Lo bueno de vivir un dia mas
es saber que nos queda un dia menos de vida

k0818...@gmail.com

unread,
Sep 19, 2011, 12:46:18 PM9/19/11
to prototype-s...@googlegroups.com
Thank you. it is working now.


From: prototype-s...@googlegroups.com [mailto:prototype-s...@googlegroups.com] On Behalf Of Miguel Beltran R.
Sent: Monday, September 19, 2011 21:01
To: prototype-s...@googlegroups.com
Subject: Re: [Proto-Scripty] Object doesn't support this property or method (LINE17)

--
You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group.
To post to this group, send email to prototype-s...@googlegroups.com.
To unsubscribe from this group, send email to prototype-scripta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Reply all
Reply to author
Forward
0 new messages