473,586 Members | 2,652 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1545
te*********@yah oo.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...@we b.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.c om/group/comp.lang.javas cript/msg/2c93334d643abbc 2)
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...@we b.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
6118
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 what I am doing wrong? Here's the test doc I'm using: =========== BEGIN TEST DOC =================== <HTML> <TITLE> OnError Test </TITLE>...
4
8929
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 does NOT work. obj.write('<p><img src=' + pImage + ' onError="self.src="Images/NoImage.jpg"" border="0"></p>'); Where is my mistake ? I appreciate...
1
6155
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 how many files there are using a binary search. it uses the onload and onerror event handlers of the image object to see if the files successfully...
2
4120
by: Tee | last post by:
what's the differences between "Overrides Sub OnError" and "Sub Page_Error" ?
3
2229
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 triggering of the onerror event stops execution of the script block in question. Is there a workaround for this? Here's an example of what I'm...
2
13742
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 window.onerror. It seems that any code that executes, having originated from an "element.addEventListener", causing an error does not activate...
5
2918
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 deliberate mistake "near the top" of the system then it's trapped and handled properly, but there's lots of code where mistakes only show up in my...
4
3884
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 parameters error message, url, line number as in: window.onerror = myError infact if I assing it via window.onerror = myError it works!
0
8338
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7959
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8216
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6614
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5390
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3865
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1449
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.