Board Logo

Comma at the end of table data
lem45 - 1/10/2003 at 03:54 PM

I am using the table with data that is generated from a Lotus Notes view. I am unable to prevent the last rom from having a comma after it, however this makes the table break. Can I change the script to make it ignore this extra comma?


alphadog - 1/30/2003 at 04:00 AM

Haven't tried it with my pages, but would adding an empty [] as the last content element be a solution to allow display instead of javascript errors?


nik - 1/30/2003 at 08:55 AM

Alphadog's advice was very good but besides this you should also replace row in table.js
p.rows = content.length-p.head-p.foot
by
p.rows = content.length-p.head-p.foot - 1
and this last element will be ignored.


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/