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


Groups > comp.lang.javascript > #17567

Re: count table rows

From "Jukka K. Korpela" <jkorpela@cs.tut.fi>
Newsgroups comp.lang.javascript
Subject Re: count table rows
Date 2012-12-07 20:56 +0200
Organization A noiseless patient Spider
Message-ID <k9te41$eom$1@dont-email.me> (permalink)
References <2fa3ab54-c5d2-492a-8c95-9ee10fa6a611@googlegroups.com>

Show all headers | View raw


2012-12-07 20:27, jr wrote:

> I don't get any errors but
> I don't get the count of table rows either.

There are some syntax errors, so that the JavaScript code does not get 
executed at all. Markup validation such as http://validator.w3.org is 
useful for detecting issues like this.

> <script type="text/javascript"
> window.addEventListener("load",

There's a missing ">" that should close the <script> tag.

> 		    mydiv.innerHTML = todocount;},false);
> 		</body>
> </script>

The string </body> does not belong there.

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/

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


Thread

count table rows jr <jlrough@yahoo.com> - 2012-12-07 10:27 -0800
  Re: count table rows Stefan Weiss <krewecherl@gmail.com> - 2012-12-07 19:48 +0100
  Re: count table rows "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-12-07 20:56 +0200
  Re: count table rows jr <jlrough@yahoo.com> - 2012-12-07 11:23 -0800
    Re: count table rows "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-12-07 21:38 +0200
      Re: count table rows jr <jlrough@yahoo.com> - 2012-12-07 13:10 -0800
    Re: count table rows Christoph Becker <cmbecker69@gmx.de> - 2012-12-07 21:44 +0100
      Re: count table rows jr <jlrough@yahoo.com> - 2012-12-07 12:57 -0800
        Re: count table rows jr <jlrough@yahoo.com> - 2012-12-07 13:08 -0800
        Re: count table rows Christoph Becker <cmbecker69@gmx.de> - 2012-12-07 22:56 +0100
          Re: count table rows JRough <janis.rough@gmail.com> - 2012-12-07 16:28 -0800
            Re: count table rows Christoph Becker <cmbecker69@gmx.de> - 2012-12-08 03:12 +0100
  Re: count table rows jr <jlrough@yahoo.com> - 2012-12-07 11:40 -0800
    Re: count table rows Luc Yen <luc@goal.tw> - 2013-01-05 16:20 -0800
  Re: count table rows Dr J R Stockton <reply1249@merlyn.demon.co.uk.invalid> - 2012-12-09 16:37 +0000
  Re: count table rows Matt McDonald <matt@fortybelow.ca> - 2012-12-13 11:41 -0500

csiph-web