Syntax error when used inside SET
Syntax error when used inside SET
carlhussey
Posts: 2Questions: 0Answers: 0
Hello,
I am using datatables in this function to add a new row on each iteration within my loop. I just implemented a "SET" which was given to me over here to solve my prior question: http://stackoverflow.com/questions/18263073/get-unique-values-during-loop/18263345?noredirect=1#18263345
Now, when I add the row, it get a Syntax error; if i comment it out, there is nothing so I have narrowed it down to doing this insert within this new set that was created.
Any ideas?
[code]
if (allTransAccount[autoArry[i].tmpMerchantAccount]) {
tmpMerchantAccount = '';
} else {
allTransAccount[tmpMerchantAccount] = true;
//Error happens here
$('[name=tableEmails]').dataTable().fnAddData([tmpCounter++, tmpMerchantName, tmpAmName, "" + tmpAmEmail + "", 'SpoofVoid', '
I am using datatables in this function to add a new row on each iteration within my loop. I just implemented a "SET" which was given to me over here to solve my prior question: http://stackoverflow.com/questions/18263073/get-unique-values-during-loop/18263345?noredirect=1#18263345
Now, when I add the row, it get a Syntax error; if i comment it out, there is nothing so I have narrowed it down to doing this insert within this new set that was created.
Any ideas?
[code]
if (allTransAccount[autoArry[i].tmpMerchantAccount]) {
tmpMerchantAccount = '';
} else {
allTransAccount[tmpMerchantAccount] = true;
//Error happens here
$('[name=tableEmails]').dataTable().fnAddData([tmpCounter++, tmpMerchantName, tmpAmName, "" + tmpAmEmail + "", 'SpoofVoid', '
This discussion has been closed.
Replies