actually passing null works in Firefox but not in Safari - this works
in both browsers: tbl.setHeaders(['<!-- Number -->','Zeit','Titel']);

On Jan 1, 12:27 pm, mmjaeger <mmjae...@gmail.com> wrote:
> Hello
> I guess, another one for Aaron and Happy New Year by the way
>
> var tbl = new HtmlTable({
>             properties: {
>                 border: 0,
>                 cellspacing: 0
>             },
>             zebra: true
>         });
>
>         tbl.setHeaders(['','Header 1','Header 2']);
>
> passing an empty string to setHeaders causes an exclamation mark in
> console log with the following message: Empty string passed to
> getElementById(). - code still works though - Safari console doesn't
> report anything.
>
> passing something like this: tbl.setHeaders([null,'header 1','header
> 2']); works just fine.

Reply via email to