Footer Callback

Footer Callback

jcrawfordjcrawford Posts: 172Questions: 0Answers: 0
edited October 2009 in General
Hello,

I am trying to implement a footer callback so that I can total up some columns. I have the following callback in place.

[code]
"fnFooterCallback": function ( nRow, aaData, iStart, iEnd, aiDisplay ) {
/*
* Calculate the total market share for all browsers in this table (ie inc. outside
* the pagination)
*/
var iTotalKeywords = 0;
for ( var i=0 ; i

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Hi jcrawford,

    At a quick guess I'd say it is because your HTML isn't valid: "thstyle" should be "th style". Not certain that this is the root cause, but it's certainly a good idea to have valid HTML: http://validator.w3.org/

    Regards,
    Allan
  • jcrawfordjcrawford Posts: 172Questions: 0Answers: 0
    OMFG thanks and sorry :)
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    lol - no problem :-) Easy one to do.

    Allan
This discussion has been closed.