$NaN being returned in the footer of my table when trying to SUMWhy does typeof NaN return 'number'?javascript sum returning NaN errorjavascript returning NaN when sumObject returning NaN when sum valuesWhy does changing the sum order returns a different result?Summing returns NaNSumming of numbers in jquery returning NANSum of array elements returns NaNSum numbers returns NaNInstead of returning Sum it returns NaN. Why is it so?

Arrow those variables!

Infinite Abelian subgroup of infinite non Abelian group example

Could gravitational lensing be used to protect a spaceship from a laser?

Is "remove commented out code" correct English?

How much of data wrangling is a data scientist's job?

Can I ask the recruiters in my resume to put the reason why I am rejected?

Is it possible to run Internet Explorer on OS X El Capitan?

Fully-Firstable Anagram Sets

Is it inappropriate for a student to attend their mentor's dissertation defense?

Why does Kotter return in Welcome Back Kotter

Can a virus destroy the BIOS of a modern computer?

Python: return float 1.0 as int 1 but float 1.5 as float 1.5

Intersection of two sorted vectors in C++

Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?

What does it mean to describe someone as a butt steak?

Today is the Center

1960's book about a plague that kills all white people

Were any external disk drives stacked vertically?

Is it possible to create light that imparts a greater proportion of its energy as momentum rather than heat?

Why can't we play rap on piano?

Facing a paradox: Earnshaw's theorem in one dimension

Watching something be written to a file live with tail

What is the word for reserving something for yourself before others do?

How can I tell someone that I want to be his or her friend?



$NaN being returned in the footer of my table when trying to SUM


Why does typeof NaN return 'number'?javascript sum returning NaN errorjavascript returning NaN when sumObject returning NaN when sum valuesWhy does changing the sum order returns a different result?Summing returns NaNSumming of numbers in jquery returning NANSum of array elements returns NaNSum numbers returns NaNInstead of returning Sum it returns NaN. Why is it so?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








-1















I'm working in PHP. I'm bringing in data from SQL Server 2008 and creating a table. I have a footer that I need to sum each respective column. I would like to make the data in the table drillable. When the data is not drillable, to footer sums everything up perfectly, but when I add the href the footer returns $NaN for that specific column. Here is my code with the footer working correctly (no hrefs):



$out = array();

while($data = odbc_fetch_array($resultsSalesOrdersHeader_SalesOrderHeader))

?>

<?php

$row = array(
$data['SalesOrder'],
$data['Customer'],
$data['CustomerName'],
$data['Branch'],
$data['Salesperson'],
$data['FinalDate']);

array_push($row, "$".number_format(($data['PreDateValue']),2));
array_push($row, "$".number_format(($data['Adds']),2));
array_push($row, "$".number_format(($data['Changes']),2));
array_push($row, "$".number_format(($data['Deletes']),2));
array_push($row, "$".number_format(($data['Delta']),2));
array_push($row, "$".number_format(($data['EndingValue']),2));

$out[] = $row;


echo json_encode(array("aaData" => $out));
?>`


and a snippet from the footer code is:



var iTotalPrice5 = 0;
for ( var i=0 ; i<aiDisplay.length ; i++ )
var y = aaData[ aiDisplay[i] ][11];
var z = y.replace("$","");
iTotalPrice5 += parseFloat(skipComma(z));


var nCells = nRow.getElementsByTagName('th');
nCells[11].innerHTML = "$"+addCommas(iTotalPrice5.toFixed(2));


This brings in the sum perfectly. Here is a snippet of the code I'm using to try and add the hyperlink, but it breaks the footer:



array_push($row, "<a href='index.php?p=SOEndingValue&enddate=".$enddate."&startdate=".$startdate."&SalesOrder=".$data['SalesOrder']."' target='_blank'>".
"$".number_format(($data['EndingValue']),2)."</a>");


What do I need to do to include the hyperlinks, and make the footer sum correctly?










share|improve this question
























  • How is $out defined?

    – Julie Pelletier
    May 13 '16 at 17:17











  • $out = array();

    – Djones
    May 13 '16 at 17:23











  • NaN means not a number. This means that parseFloat doesn't manage to transform skipComma(z) into a float. You should print what happens on z.

    – Unex
    May 13 '16 at 17:24












  • Unex - would you please help with this? How would I go about printing to see what happens on z? (Again - sorry, I'm very new to this.) Thanks

    – Djones
    May 16 '16 at 19:14

















-1















I'm working in PHP. I'm bringing in data from SQL Server 2008 and creating a table. I have a footer that I need to sum each respective column. I would like to make the data in the table drillable. When the data is not drillable, to footer sums everything up perfectly, but when I add the href the footer returns $NaN for that specific column. Here is my code with the footer working correctly (no hrefs):



$out = array();

while($data = odbc_fetch_array($resultsSalesOrdersHeader_SalesOrderHeader))

?>

<?php

$row = array(
$data['SalesOrder'],
$data['Customer'],
$data['CustomerName'],
$data['Branch'],
$data['Salesperson'],
$data['FinalDate']);

array_push($row, "$".number_format(($data['PreDateValue']),2));
array_push($row, "$".number_format(($data['Adds']),2));
array_push($row, "$".number_format(($data['Changes']),2));
array_push($row, "$".number_format(($data['Deletes']),2));
array_push($row, "$".number_format(($data['Delta']),2));
array_push($row, "$".number_format(($data['EndingValue']),2));

$out[] = $row;


echo json_encode(array("aaData" => $out));
?>`


and a snippet from the footer code is:



var iTotalPrice5 = 0;
for ( var i=0 ; i<aiDisplay.length ; i++ )
var y = aaData[ aiDisplay[i] ][11];
var z = y.replace("$","");
iTotalPrice5 += parseFloat(skipComma(z));


var nCells = nRow.getElementsByTagName('th');
nCells[11].innerHTML = "$"+addCommas(iTotalPrice5.toFixed(2));


This brings in the sum perfectly. Here is a snippet of the code I'm using to try and add the hyperlink, but it breaks the footer:



array_push($row, "<a href='index.php?p=SOEndingValue&enddate=".$enddate."&startdate=".$startdate."&SalesOrder=".$data['SalesOrder']."' target='_blank'>".
"$".number_format(($data['EndingValue']),2)."</a>");


What do I need to do to include the hyperlinks, and make the footer sum correctly?










share|improve this question
























  • How is $out defined?

    – Julie Pelletier
    May 13 '16 at 17:17











  • $out = array();

    – Djones
    May 13 '16 at 17:23











  • NaN means not a number. This means that parseFloat doesn't manage to transform skipComma(z) into a float. You should print what happens on z.

    – Unex
    May 13 '16 at 17:24












  • Unex - would you please help with this? How would I go about printing to see what happens on z? (Again - sorry, I'm very new to this.) Thanks

    – Djones
    May 16 '16 at 19:14













-1












-1








-1


1






I'm working in PHP. I'm bringing in data from SQL Server 2008 and creating a table. I have a footer that I need to sum each respective column. I would like to make the data in the table drillable. When the data is not drillable, to footer sums everything up perfectly, but when I add the href the footer returns $NaN for that specific column. Here is my code with the footer working correctly (no hrefs):



$out = array();

while($data = odbc_fetch_array($resultsSalesOrdersHeader_SalesOrderHeader))

?>

<?php

$row = array(
$data['SalesOrder'],
$data['Customer'],
$data['CustomerName'],
$data['Branch'],
$data['Salesperson'],
$data['FinalDate']);

array_push($row, "$".number_format(($data['PreDateValue']),2));
array_push($row, "$".number_format(($data['Adds']),2));
array_push($row, "$".number_format(($data['Changes']),2));
array_push($row, "$".number_format(($data['Deletes']),2));
array_push($row, "$".number_format(($data['Delta']),2));
array_push($row, "$".number_format(($data['EndingValue']),2));

$out[] = $row;


echo json_encode(array("aaData" => $out));
?>`


and a snippet from the footer code is:



var iTotalPrice5 = 0;
for ( var i=0 ; i<aiDisplay.length ; i++ )
var y = aaData[ aiDisplay[i] ][11];
var z = y.replace("$","");
iTotalPrice5 += parseFloat(skipComma(z));


var nCells = nRow.getElementsByTagName('th');
nCells[11].innerHTML = "$"+addCommas(iTotalPrice5.toFixed(2));


This brings in the sum perfectly. Here is a snippet of the code I'm using to try and add the hyperlink, but it breaks the footer:



array_push($row, "<a href='index.php?p=SOEndingValue&enddate=".$enddate."&startdate=".$startdate."&SalesOrder=".$data['SalesOrder']."' target='_blank'>".
"$".number_format(($data['EndingValue']),2)."</a>");


What do I need to do to include the hyperlinks, and make the footer sum correctly?










share|improve this question
















I'm working in PHP. I'm bringing in data from SQL Server 2008 and creating a table. I have a footer that I need to sum each respective column. I would like to make the data in the table drillable. When the data is not drillable, to footer sums everything up perfectly, but when I add the href the footer returns $NaN for that specific column. Here is my code with the footer working correctly (no hrefs):



$out = array();

while($data = odbc_fetch_array($resultsSalesOrdersHeader_SalesOrderHeader))

?>

<?php

$row = array(
$data['SalesOrder'],
$data['Customer'],
$data['CustomerName'],
$data['Branch'],
$data['Salesperson'],
$data['FinalDate']);

array_push($row, "$".number_format(($data['PreDateValue']),2));
array_push($row, "$".number_format(($data['Adds']),2));
array_push($row, "$".number_format(($data['Changes']),2));
array_push($row, "$".number_format(($data['Deletes']),2));
array_push($row, "$".number_format(($data['Delta']),2));
array_push($row, "$".number_format(($data['EndingValue']),2));

$out[] = $row;


echo json_encode(array("aaData" => $out));
?>`


and a snippet from the footer code is:



var iTotalPrice5 = 0;
for ( var i=0 ; i<aiDisplay.length ; i++ )
var y = aaData[ aiDisplay[i] ][11];
var z = y.replace("$","");
iTotalPrice5 += parseFloat(skipComma(z));


var nCells = nRow.getElementsByTagName('th');
nCells[11].innerHTML = "$"+addCommas(iTotalPrice5.toFixed(2));


This brings in the sum perfectly. Here is a snippet of the code I'm using to try and add the hyperlink, but it breaks the footer:



array_push($row, "<a href='index.php?p=SOEndingValue&enddate=".$enddate."&startdate=".$startdate."&SalesOrder=".$data['SalesOrder']."' target='_blank'>".
"$".number_format(($data['EndingValue']),2)."</a>");


What do I need to do to include the hyperlinks, and make the footer sum correctly?







javascript php






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 8 at 0:03









Dale Burrell

3,43452655




3,43452655










asked May 13 '16 at 17:06









DjonesDjones

4916




4916












  • How is $out defined?

    – Julie Pelletier
    May 13 '16 at 17:17











  • $out = array();

    – Djones
    May 13 '16 at 17:23











  • NaN means not a number. This means that parseFloat doesn't manage to transform skipComma(z) into a float. You should print what happens on z.

    – Unex
    May 13 '16 at 17:24












  • Unex - would you please help with this? How would I go about printing to see what happens on z? (Again - sorry, I'm very new to this.) Thanks

    – Djones
    May 16 '16 at 19:14

















  • How is $out defined?

    – Julie Pelletier
    May 13 '16 at 17:17











  • $out = array();

    – Djones
    May 13 '16 at 17:23











  • NaN means not a number. This means that parseFloat doesn't manage to transform skipComma(z) into a float. You should print what happens on z.

    – Unex
    May 13 '16 at 17:24












  • Unex - would you please help with this? How would I go about printing to see what happens on z? (Again - sorry, I'm very new to this.) Thanks

    – Djones
    May 16 '16 at 19:14
















How is $out defined?

– Julie Pelletier
May 13 '16 at 17:17





How is $out defined?

– Julie Pelletier
May 13 '16 at 17:17













$out = array();

– Djones
May 13 '16 at 17:23





$out = array();

– Djones
May 13 '16 at 17:23













NaN means not a number. This means that parseFloat doesn't manage to transform skipComma(z) into a float. You should print what happens on z.

– Unex
May 13 '16 at 17:24






NaN means not a number. This means that parseFloat doesn't manage to transform skipComma(z) into a float. You should print what happens on z.

– Unex
May 13 '16 at 17:24














Unex - would you please help with this? How would I go about printing to see what happens on z? (Again - sorry, I'm very new to this.) Thanks

– Djones
May 16 '16 at 19:14





Unex - would you please help with this? How would I go about printing to see what happens on z? (Again - sorry, I'm very new to this.) Thanks

– Djones
May 16 '16 at 19:14












2 Answers
2






active

oldest

votes


















1














As you should know, your array $row is a list of numbers that you add up to make your total in JavaScript. Adding a line of text will certainly make it notice that it is not a number (NaN).



If you want to pass the footer in your JSON array, you'll need to add it somewhere else in the $out array.






share|improve this answer























  • Any idea how I would go about doing this? I'm really not certain.

    – Djones
    May 16 '16 at 18:52











  • After $out[] = $row;, add $out[] = "<a href='index.php?p=SOEndingValue&enddate=".$enddate."&startdate=".$startdate."&SalesOrder=".$data['SalesOrder']."' target='_blank'>". "$".number_format(($data['EndingValue']),2)."</a>";. For the exact code to use in JavaScript, you need to locate how that JSON array is used.

    – Julie Pelletier
    May 17 '16 at 3:57


















1














Try adding



var n = str.indexOf(">")+1;
var m = str.indexOf("</a>");
z = z.substring(n, m);


On for loop.



for ( var i=0 ; i<aiDisplay.length ; i++ ) 
var y = aaData[ aiDisplay[i] ][11];

var n = str.indexOf(">")+1;
var m = str.indexOf("</a>");
var z = y.substring(n, m);

z = z.replace("$","");
iTotalPrice5 += parseFloat(skipComma(z));



This will extracts the values between the <a> and </a> tags, and you can use it for calculations.






share|improve this answer























  • Hm. I tried adding this, but for some reason it prevented any data from being brought into the table. Any idea why that would be? It didn't return $NaN in the footer, it returned $0. But there should definitely be data brought in. Thanks,

    – Djones
    May 13 '16 at 17:44












  • So I figured this out. You were super close. I had to change str to y. so y.indexOf(">")+1; and y.indexOf("</a>");. it works perfectly now. Thanks for the help

    – Djones
    Jun 20 '16 at 21:16











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f37215668%2fnan-being-returned-in-the-footer-of-my-table-when-trying-to-sum%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














As you should know, your array $row is a list of numbers that you add up to make your total in JavaScript. Adding a line of text will certainly make it notice that it is not a number (NaN).



If you want to pass the footer in your JSON array, you'll need to add it somewhere else in the $out array.






share|improve this answer























  • Any idea how I would go about doing this? I'm really not certain.

    – Djones
    May 16 '16 at 18:52











  • After $out[] = $row;, add $out[] = "<a href='index.php?p=SOEndingValue&enddate=".$enddate."&startdate=".$startdate."&SalesOrder=".$data['SalesOrder']."' target='_blank'>". "$".number_format(($data['EndingValue']),2)."</a>";. For the exact code to use in JavaScript, you need to locate how that JSON array is used.

    – Julie Pelletier
    May 17 '16 at 3:57















1














As you should know, your array $row is a list of numbers that you add up to make your total in JavaScript. Adding a line of text will certainly make it notice that it is not a number (NaN).



If you want to pass the footer in your JSON array, you'll need to add it somewhere else in the $out array.






share|improve this answer























  • Any idea how I would go about doing this? I'm really not certain.

    – Djones
    May 16 '16 at 18:52











  • After $out[] = $row;, add $out[] = "<a href='index.php?p=SOEndingValue&enddate=".$enddate."&startdate=".$startdate."&SalesOrder=".$data['SalesOrder']."' target='_blank'>". "$".number_format(($data['EndingValue']),2)."</a>";. For the exact code to use in JavaScript, you need to locate how that JSON array is used.

    – Julie Pelletier
    May 17 '16 at 3:57













1












1








1







As you should know, your array $row is a list of numbers that you add up to make your total in JavaScript. Adding a line of text will certainly make it notice that it is not a number (NaN).



If you want to pass the footer in your JSON array, you'll need to add it somewhere else in the $out array.






share|improve this answer













As you should know, your array $row is a list of numbers that you add up to make your total in JavaScript. Adding a line of text will certainly make it notice that it is not a number (NaN).



If you want to pass the footer in your JSON array, you'll need to add it somewhere else in the $out array.







share|improve this answer












share|improve this answer



share|improve this answer










answered May 13 '16 at 17:25









Julie PelletierJulie Pelletier

1,6761516




1,6761516












  • Any idea how I would go about doing this? I'm really not certain.

    – Djones
    May 16 '16 at 18:52











  • After $out[] = $row;, add $out[] = "<a href='index.php?p=SOEndingValue&enddate=".$enddate."&startdate=".$startdate."&SalesOrder=".$data['SalesOrder']."' target='_blank'>". "$".number_format(($data['EndingValue']),2)."</a>";. For the exact code to use in JavaScript, you need to locate how that JSON array is used.

    – Julie Pelletier
    May 17 '16 at 3:57

















  • Any idea how I would go about doing this? I'm really not certain.

    – Djones
    May 16 '16 at 18:52











  • After $out[] = $row;, add $out[] = "<a href='index.php?p=SOEndingValue&enddate=".$enddate."&startdate=".$startdate."&SalesOrder=".$data['SalesOrder']."' target='_blank'>". "$".number_format(($data['EndingValue']),2)."</a>";. For the exact code to use in JavaScript, you need to locate how that JSON array is used.

    – Julie Pelletier
    May 17 '16 at 3:57
















Any idea how I would go about doing this? I'm really not certain.

– Djones
May 16 '16 at 18:52





Any idea how I would go about doing this? I'm really not certain.

– Djones
May 16 '16 at 18:52













After $out[] = $row;, add $out[] = "<a href='index.php?p=SOEndingValue&enddate=".$enddate."&startdate=".$startdate."&SalesOrder=".$data['SalesOrder']."' target='_blank'>". "$".number_format(($data['EndingValue']),2)."</a>";. For the exact code to use in JavaScript, you need to locate how that JSON array is used.

– Julie Pelletier
May 17 '16 at 3:57





After $out[] = $row;, add $out[] = "<a href='index.php?p=SOEndingValue&enddate=".$enddate."&startdate=".$startdate."&SalesOrder=".$data['SalesOrder']."' target='_blank'>". "$".number_format(($data['EndingValue']),2)."</a>";. For the exact code to use in JavaScript, you need to locate how that JSON array is used.

– Julie Pelletier
May 17 '16 at 3:57













1














Try adding



var n = str.indexOf(">")+1;
var m = str.indexOf("</a>");
z = z.substring(n, m);


On for loop.



for ( var i=0 ; i<aiDisplay.length ; i++ ) 
var y = aaData[ aiDisplay[i] ][11];

var n = str.indexOf(">")+1;
var m = str.indexOf("</a>");
var z = y.substring(n, m);

z = z.replace("$","");
iTotalPrice5 += parseFloat(skipComma(z));



This will extracts the values between the <a> and </a> tags, and you can use it for calculations.






share|improve this answer























  • Hm. I tried adding this, but for some reason it prevented any data from being brought into the table. Any idea why that would be? It didn't return $NaN in the footer, it returned $0. But there should definitely be data brought in. Thanks,

    – Djones
    May 13 '16 at 17:44












  • So I figured this out. You were super close. I had to change str to y. so y.indexOf(">")+1; and y.indexOf("</a>");. it works perfectly now. Thanks for the help

    – Djones
    Jun 20 '16 at 21:16















1














Try adding



var n = str.indexOf(">")+1;
var m = str.indexOf("</a>");
z = z.substring(n, m);


On for loop.



for ( var i=0 ; i<aiDisplay.length ; i++ ) 
var y = aaData[ aiDisplay[i] ][11];

var n = str.indexOf(">")+1;
var m = str.indexOf("</a>");
var z = y.substring(n, m);

z = z.replace("$","");
iTotalPrice5 += parseFloat(skipComma(z));



This will extracts the values between the <a> and </a> tags, and you can use it for calculations.






share|improve this answer























  • Hm. I tried adding this, but for some reason it prevented any data from being brought into the table. Any idea why that would be? It didn't return $NaN in the footer, it returned $0. But there should definitely be data brought in. Thanks,

    – Djones
    May 13 '16 at 17:44












  • So I figured this out. You were super close. I had to change str to y. so y.indexOf(">")+1; and y.indexOf("</a>");. it works perfectly now. Thanks for the help

    – Djones
    Jun 20 '16 at 21:16













1












1








1







Try adding



var n = str.indexOf(">")+1;
var m = str.indexOf("</a>");
z = z.substring(n, m);


On for loop.



for ( var i=0 ; i<aiDisplay.length ; i++ ) 
var y = aaData[ aiDisplay[i] ][11];

var n = str.indexOf(">")+1;
var m = str.indexOf("</a>");
var z = y.substring(n, m);

z = z.replace("$","");
iTotalPrice5 += parseFloat(skipComma(z));



This will extracts the values between the <a> and </a> tags, and you can use it for calculations.






share|improve this answer













Try adding



var n = str.indexOf(">")+1;
var m = str.indexOf("</a>");
z = z.substring(n, m);


On for loop.



for ( var i=0 ; i<aiDisplay.length ; i++ ) 
var y = aaData[ aiDisplay[i] ][11];

var n = str.indexOf(">")+1;
var m = str.indexOf("</a>");
var z = y.substring(n, m);

z = z.replace("$","");
iTotalPrice5 += parseFloat(skipComma(z));



This will extracts the values between the <a> and </a> tags, and you can use it for calculations.







share|improve this answer












share|improve this answer



share|improve this answer










answered May 13 '16 at 17:37









MunawirMunawir

2,86582339




2,86582339












  • Hm. I tried adding this, but for some reason it prevented any data from being brought into the table. Any idea why that would be? It didn't return $NaN in the footer, it returned $0. But there should definitely be data brought in. Thanks,

    – Djones
    May 13 '16 at 17:44












  • So I figured this out. You were super close. I had to change str to y. so y.indexOf(">")+1; and y.indexOf("</a>");. it works perfectly now. Thanks for the help

    – Djones
    Jun 20 '16 at 21:16

















  • Hm. I tried adding this, but for some reason it prevented any data from being brought into the table. Any idea why that would be? It didn't return $NaN in the footer, it returned $0. But there should definitely be data brought in. Thanks,

    – Djones
    May 13 '16 at 17:44












  • So I figured this out. You were super close. I had to change str to y. so y.indexOf(">")+1; and y.indexOf("</a>");. it works perfectly now. Thanks for the help

    – Djones
    Jun 20 '16 at 21:16
















Hm. I tried adding this, but for some reason it prevented any data from being brought into the table. Any idea why that would be? It didn't return $NaN in the footer, it returned $0. But there should definitely be data brought in. Thanks,

– Djones
May 13 '16 at 17:44






Hm. I tried adding this, but for some reason it prevented any data from being brought into the table. Any idea why that would be? It didn't return $NaN in the footer, it returned $0. But there should definitely be data brought in. Thanks,

– Djones
May 13 '16 at 17:44














So I figured this out. You were super close. I had to change str to y. so y.indexOf(">")+1; and y.indexOf("</a>");. it works perfectly now. Thanks for the help

– Djones
Jun 20 '16 at 21:16





So I figured this out. You were super close. I had to change str to y. so y.indexOf(">")+1; and y.indexOf("</a>");. it works perfectly now. Thanks for the help

– Djones
Jun 20 '16 at 21:16

















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f37215668%2fnan-being-returned-in-the-footer-of-my-table-when-trying-to-sum%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

1928 у кіно

Захаров Федір Захарович

Ель Греко