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


Groups > comp.lang.javascript > #17577

Re: count table rows

Path csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail
From Christoph Becker <cmbecker69@gmx.de>
Newsgroups comp.lang.javascript
Subject Re: count table rows
Date Fri, 07 Dec 2012 22:56:00 +0100
Organization Aioe.org NNTP Server
Lines 43
Message-ID <k9tol7$68o$1@speranza.aioe.org> (permalink)
References <2fa3ab54-c5d2-492a-8c95-9ee10fa6a611@googlegroups.com> <b7f55326-1955-4b9f-909e-2a80b35896cb@googlegroups.com> <k9tkfj$qq7$1@speranza.aioe.org> <13fbf1db-57de-4769-a09d-b9c4777c302b@googlegroups.com>
NNTP-Posting-Host nsK43T4bGpwpt2+VNAKZOw.user.speranza.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/17.0 Thunderbird/17.0
X-Notice Filtered by postfilter v. 0.8.2
Xref csiph.com comp.lang.javascript:17577

Show key headers only | View raw


jr wrote:
> On Friday, December 7, 2012 12:44:44 PM UTC-8, Christoph Becker wrote:
>> jr wrote:
>>> Okay, sorry I was in a hurry to set up the test page but I do
>>> have an error on the real page.
>>
>> As others already have noted, it might be a good idea to fix the
>> *validation* errors *first*, beginning with the following:
>>
>> | Line 1, Column 16: "CLASS" is not a reserved name
>> | <!DOCTYPE html class="no-js">
>
> It is a modernizr CSS3 feature:
> [...]

Setting a class for the "html" element and other DOM elements is fine,
but not so for the Doctype.  Just remove the "class attribute" from the
Doctype---it definitely won't do any harm.

> P.S. I think it is problem with the AJAX loading the table rows
> after the the script tries count the table rows but I don't know how to get
> the script to go last.

Well, I guess that's the reason for *this* error.  But there might be
other errors caused by invalid HTML.  So *after* removing all validation
errors, you might try to use jQuery's $.ready() function instead of the
"window load" event handler, if you really want to stick with jQuery.
If you have further questions about this document, you should prepare a
stripped down version containing only the absolutely necessary parts to
reproduce the error.  This makes it easier and more appealing for others
to have a look at the document, and it might help you finding the error
yourself.

PS: Please read the FAQ notes about posting:
<http://jibbering.com/faq/notes/posting/>.  Top posting is quite
uncommon in a Usenet newsgroup, and false attributions, as Yucca already
noted, should be avoided.  Otherwise you're risking, that nobody cares
to read, let alone to reply, to your posts.

I have fixed your post for this time.

-- 
Christoph M. Becker

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