473,396 Members | 2,038 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Is it onerror or onError?

Hi,

I gather that Javascript standard function names are case sensitive
and they follow the old Smalltalk manner of applying case e.g.
thisName,
however I am curious, I see "onerror" mentioned on some web pages
which seems to contradict the standard. Or is it actually onError?

Thanks.
Mar 21 '08 #1
5 1536
te*********@yahoo.com wrote:
I gather that Javascript standard function names are case sensitive and
they follow the old Smalltalk manner of applying case e.g. thisName,
however I am curious, I see "onerror" mentioned on some web pages which
seems to contradict the standard.
The ECMAScript Language Specification, which is the standard that JavaScript
and other implementations are based on, has nothing to say about the
expected case of user-defined identifiers, although its use of identifiers
starting with capital letter, among other PLs, for constructors, has become
a rule of thumb for Pretty Printing.

I suspect the camelCasing in JavaScript (since 1996 CE) and consequently
ECMAScript (since 1997 CE) was derived from Perl (since 1987 CE) and its
successors instead, although Smalltalk (since 1972 CE) maybe was the
language that introduced it.
Or is it actually onError?
`onerror' is a proprietary property of Window and Image host objects.
Neither is part of the JavaScript language anymore since version 1.4.
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Mar 21 '08 #2
Thomas 'PointedEars' Lahn wrote:
Or is it actually onError?

`onerror' is a proprietary property of Window and Image host objects.
Neither is part of the JavaScript language anymore since version 1.4.
So I guess we are only left with the exception handling (try..catch
blocks) when performing error handling since 'onerror` is no longer a
javascript standard.

Is Javascript language version different from the ECMA script
specification versions? Is there any way of knowing the implementation
version a user agent (browser) uses?
Mar 22 '08 #3
VK wrote:
HTML is case-insensitive: [...]
Not per se:

http://www.w3.org/TR/html4/types.html#h-6.1
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Mar 23 '08 #4
VK
On Mar 23, 11:24 pm, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:
VK wrote:
HTML is case-insensitive: [...]

Not per se:

http://www.w3.org/TR/html4/types.html#h-6.1
http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.1
"Element names are always case-insensitive."

http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2
"Attribute names are always case-insensitive."

This is all what relevant to the topic but again (http://
groups.google.com/group/comp.lang.javascript/msg/2c93334d643abbc2)
thank you for trying - though not always successfully - to be useful.
Mar 23 '08 #5
VK
On Mar 24, 1:34 am, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:
For brevity let us ignore the rest of your displaying your utter
incompetence again.
Xvff zl fhpxrq fpevcgrq nff, fhxn' ;-)

Mar 27 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Robert Oschler | last post by:
If I set window.onerror to an error handler I've created, I don't see the browser error dialogs anymore but I don't see the alert() messages in my error handler pop up either. Can someone tell me...
4
by: Jürgen Heyn | last post by:
Good afternoon, I am handing a string as a parameter pImage = "Images/Available.jpg" If this image is NOT available I would like to load Images/NoImage.jpg. Unfortunately the following code...
1
by: bjarthur | last post by:
i have (see below) what i think is a fairly simple algorithm, but yet it doesn't work. given a directory with consecutively numbered jpeg files (1.jpg, 2.jpg, 3.jpg...), it is designed to count...
2
by: Tee | last post by:
what's the differences between "Overrides Sub OnError" and "Sub Page_Error" ?
3
by: Tobius | last post by:
I want to be able to define a custom onerror event that detects an attempt to call a known function and load a file if it's not already loaded and re-call the function. The only problem is that any...
2
by: crazydave | last post by:
Hi, I've been using window.onerror to capture and report JavaScript errors from other users for debugging an application I've written. But I've run into a strange issue with Firefox and...
5
by: Pete Verdon | last post by:
I'm working on a fairly sizeable javascript application. I recently added some error-handling to it, using window.onerror to catch them. This sometimes works and sometimes doesn't; if I introduce a...
4
by: josh | last post by:
Hi if I try to attach onerror event via addEventListener window.addEventListener("error", myError, false) it does not work as it pass to myError only the event object but not the three...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.