Done but with errors on when page loads.

118 views
Skip to first unread message

DeveloperDavid

unread,
Oct 28, 2011, 9:31:42 AM10/28/11
to Prototype & script.aculo.us
I am using prototype 1.7 and get an error on line 5736
element.fireEvent(event.eventType, event);
and 5988
return $(parentElement ||
document.body).getElementsByClassName(className); prototype.js
"element.fireEvent(event.eventType, event);"

The error I receive is....
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/
4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
3.0.30729; .NET4.0C; .NET4.0E; InfoPath.3)
Timestamp: Fri, 28 Oct 2011 13:27:44 UTC


Message: Object doesn't support this property or method
Line: 5988
Char: 5
Code: 0
URI: http://dev.my.tweb02.mcphs.edu/scripts/prototype.js


Message: Object doesn't support this property or method
Line: 5736
Char: 7
Code: 0
URI: http://dev.my.tweb02.mcphs.edu/scripts/prototype.js

Is this a known issue? I am using IE8.


Victor

unread,
Oct 28, 2011, 4:41:21 PM10/28/11
to prototype-s...@googlegroups.com
You are trying to invoke methods on not extended element in IE8, right? E.g. instead of $(element).fire("some:thing") you are using element.fire("some:thing").

T.J. Crowder

unread,
Oct 28, 2011, 5:08:37 PM10/28/11
to Prototype & script.aculo.us
On Oct 28, 2:31 pm, DeveloperDavid <d.smith38h...@gmail.com> wrote:
> Message: Object doesn't support this property or method

Have a read through this tutorial from the prototypejs.org site:
http://prototypejs.org/learn/extensions

Elements can be automagically extended on other browsers, but not IE.
You have to make sure you're dealing with an extended one. All
elements you get via Prototype are pre-extended for you, but if you
create or retrieve them via other means, they won't be. See the
article for details.
--
T.J. Crowder
Independent Software Engineer
tj / crowder software / com
www / crowder software / com
Reply all
Reply to author
Forward
0 new messages