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


Groups > comp.lang.javascript > #11806

Re: body onload not executed

From Dr J R Stockton <reply1207@merlyn.demon.co.uk>
Newsgroups comp.lang.javascript
Subject Re: body onload not executed
Date 2012-02-15 20:37 +0000
Organization Home
Message-ID <kx12lHJTeBPPFwo7@invalid.uk.co.demon.merlyn.invalid> (permalink)
References <4f3ae9c5$0$6918$e4fe514c@news2.news.xs4all.nl>

Show all headers | View raw


In comp.lang.javascript message <4f3ae9c5$0$6918$e4fe514c@news2.news.xs4
all.nl>, Wed, 15 Feb 2012 00:09:57, Tom de Neef <tdeneef@qolor.nl>
posted:

>I help someone with a XHTML site. It loads dozens of JavaScript files and a
>lot of processing is going on during the loading of a page.
>The script I am interested in is called via <body onload="getChartInfo()">.

Try      <body onload="alert(12345);getChartInfo()">.

And scan all files, HTML and JS, for any other occurrences of onload
which might have overridden that.

If you have no more than treble-checked the spelling of getChartInfo,
try a few more times.

Scan the files for any possible assignment to getChartInfo.

Replace getChartInfo() by qwerty() in body onload, and provide
function qwerty() { alert(98765) } to see if that works.

Also : I'd starting testing a function with a button that executed the
function provided in a <script> element.  It seemed OK, so I tidied the
code itself and changed the element to <script type-"text/javasript">.
It ceased to work, with nothing appearing in the Error Console.

Hint - although your English seems perfect, your keying is not always
quite so.

> ...
>In a test environmet
> ...


-- 
 (c) John Stockton, Surrey, UK.  ?@merlyn.demon.co.uk   Turnpike v6.05   MIME.
   Web  <http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
 Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
 Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)

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


Thread

body onload not executed "Tom de Neef" <tdeneef@qolor.nl> - 2012-02-15 00:09 +0100
  Re: body onload not executed "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-02-14 23:29 +0000
    Re: body onload not executed "Tom de Neef" <tdeneef@qolor.nl> - 2012-02-15 09:26 +0100
      Re: body onload not executed Denis McMahon <denismfmcmahon@gmail.com> - 2012-02-15 09:08 +0000
        Re: body onload not executed "Tom de Neef" <tdeneef@qolor.nl> - 2012-02-15 10:26 +0100
          Re: body onload not executed Denis McMahon <denismfmcmahon@gmail.com> - 2012-02-15 13:48 +0000
      Re: body onload not executed "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-02-15 10:33 +0000
  Re: body onload not executed Hans-Georg Michna <hans-georgNoEmailPlease@michna.com> - 2012-02-15 17:56 +0100
    Re: body onload not executed "Tom de Neef" <tdeneef@qolor.nl> - 2012-02-17 14:45 +0100
  Re: body onload not executed Dr J R Stockton <reply1207@merlyn.demon.co.uk> - 2012-02-15 20:37 +0000
    Re: body onload not executed Gene Wirchenko <genew@ocis.net> - 2012-02-15 16:46 -0800

csiph-web