Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #14911

Re: An aid for text site developers

From Tim Streater <timstreater@greenbee.net>
Newsgroups comp.lang.javascript
Subject Re: An aid for text site developers
Date 2012-07-06 18:44 +0100
Organization Personal Software
Message-ID <timstreater-FDCE1F.18442906072012@news.individual.net> (permalink)
References <oc3lOnMQKd9PFw7R@invalid.uk.co.demon.merlyn.invalid> <XnsA0885F1BECB0eejj99@194.109.133.133> <oe8ev711k8tla1alhhg99vdl9o03oo2dta@4ax.com>

Show all headers | View raw


In article <oe8ev711k8tla1alhhg99vdl9o03oo2dta@4ax.com>,
 Gene Wirchenko <genew@ocis.net> wrote:

> On 06 Jul 2012 07:20:59 GMT, "Evertjan."
> <exxjxw.hannivoort@inter.nl.net> wrote:
> 
> >Dr J R Stockton wrote on 05 jul 2012 in comp.lang.javascript:
> >
> >> In each texty linky anchory page :
> >> 
> >>         <BODY onload="Hooks()">
> >
> >In Chrome, such nonexisting onload is simply ignored,
> >so testing is superfluous.
> 
>      Not superfluous.  Firefox 13.0.1 ignores the error as well, but
> IE 9.0.8122.16421 does not.
> 
>      I would rather have the error thrown.  If I accidentally entered
> the onload as "Hoks()", I would want to see an error right away.  The
> alternative is wondering why some code (quite probably elsewhere on
> the page) is not working.

Then you'd look in the Error Console where it would tell you that 
function Hoks does not exist and at which line the error occurred. Even 
if you don't get the line number a simple global search of your source 
will give it  to you.

-- 
Tim

"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted"  --  Bill of Rights 1689

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

An aid for text site developers Dr J R Stockton <reply1227@merlyn.demon.co.uk.not.invalid> - 2012-07-05 18:44 +0100
  Re: An aid for text site developers "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-07-06 07:20 +0000
    Re: An aid for text site developers Gene Wirchenko <genew@ocis.net> - 2012-07-06 10:38 -0700
      Re: An aid for text site developers Tim Streater <timstreater@greenbee.net> - 2012-07-06 18:44 +0100
        Re: An aid for text site developers Gene Wirchenko <genew@ocis.net> - 2012-07-06 13:26 -0700
          Re: An aid for text site developers Tim Streater <timstreater@greenbee.net> - 2012-07-06 22:33 +0100
            Re: An aid for text site developers Gene Wirchenko <genew@ocis.net> - 2012-07-07 21:25 -0700
              Re: An aid for text site developers "Qu0ll" <Qu0llSixFour@gmail.com> - 2012-07-08 14:43 +1000
                Re: An aid for text site developers Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-07-08 20:03 +0200
                Re: An aid for text site developers John G Harris <john@nospam.demon.co.uk> - 2012-07-09 09:56 +0100

csiph-web