Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Mel Smith" Newsgroups: comp.lang.javascript Subject: Re: JS/ECMA script created table question Date: Sun, 24 Nov 2013 13:57:17 -0700 Lines: 36 Message-ID: References: <529251aa$0$9524$9b4e6d93@newsspool1.arcor-online.net> X-Trace: individual.net TaZm2cuOpQX96dL8LAZlKwgRvmY3ZmiXNoYTiipU1CJ+FO4E+S Cancel-Lock: sha1:T4rfJPJ4i2CZg3roOa1l9INi6Ls= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: csiph.com comp.lang.javascript:22172 Christoph said: > You may consider using CSS classes instead of modifying the style > property of the cells directly, e.g. > > cell.className = "my-class-name"; > > or if you need more than one class for a single cell: > > cell.className += " second-class"; > > The latter is a rather sloppy way, that might better replaced by an > addClass() function, or so. > > Anyway, then you can define CSS rules for the classes to style the cells > and use @media screen vs. @media print rules as desired. The details > are OT in this newsgroup, so that might better be discussed in > c.i.w.a.stylesheets or so. Hi Christoph: I'll review what you said. (btw, another option -- which I may have to use- is to build a pdf file at the server, and then send a link to the client to *that* file. But this means I may have to save this file on the server, or maybe email file to the client. Both are unpalatable options for me.) (another btw: I've never used/heardof @media screen or @media print. Will have to google that) Thank you -Mel