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


Groups > comp.lang.javascript > #17584

Re: count table rows

Newsgroups comp.lang.javascript
Date 2012-12-07 16:28 -0800
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> <k9tol7$68o$1@speranza.aioe.org>
Message-ID <b227b7fe-6167-496e-9846-bbfdbe9b7da5@googlegroups.com> (permalink)
Subject Re: count table rows
From JRough <janis.rough@gmail.com>

Show all headers | View raw


On Friday, December 7, 2012 1:56:00 PM UTC-8, Christoph Becker wrote:
IT didn't work adding the function into Jquery document ready.  I thought the window.onload would work since the whole document needed to be loaded to run however the document would load but the AJAX is still coming for a little while I guess.  
  I took out the function and put just the code inside the AJAX response after the callback but before the success closed.  It works now.
> 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