Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #22172

Re: JS/ECMA script created table question

From "Mel Smith" <med_cutout_syntel@aol.com>
Newsgroups comp.lang.javascript
Subject Re: JS/ECMA script created table question
Date 2013-11-24 13:57 -0700
Message-ID <bff7hnFeebmU1@mid.individual.net> (permalink)
References <bfev3vFcjrpU1@mid.individual.net> <529251aa$0$9524$9b4e6d93@newsspool1.arcor-online.net>

Show all headers | View raw


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

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

JS/ECMA script created table question "Mel Smith" <med_cutout_syntel@aol.com> - 2013-11-24 11:33 -0700
  Re: JS/ECMA script created table question Christoph Michael Becker <cmbecker69@arcor.de> - 2013-11-24 20:21 +0100
    Re: JS/ECMA script created table question "Mel Smith" <med_cutout_syntel@aol.com> - 2013-11-24 13:57 -0700
      Re: JS/ECMA script created table question Christoph Michael Becker <cmbecker69@arcor.de> - 2013-11-28 16:10 +0100
        Re: JS/ECMA script created table question Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-11-28 16:39 +0100
        Re: JS/ECMA script created table question "Mel Smith" <med_cutout_syntel@aol.com> - 2013-11-28 08:46 -0700
  Re: JS/ECMA script created table question danca <cyberdanny@tiscalinet.it> - 2013-11-24 23:58 +0100
    Re: JS/ECMA script created table question "Mel Smith" <med_cutout_syntel@aol.com> - 2013-11-24 18:24 -0700
      Re: JS/ECMA script created table question "Mel Smith" <med_cutout_syntel@aol.com> - 2013-11-24 20:16 -0700
        Re: JS/ECMA script created table question [a bit OT] danca <cyberdanny@tiscalinet.it> - 2013-11-25 10:55 +0100
          Re: JS/ECMA script created table question [a bit OT] "Mel Smith" <med_cutout_syntel@aol.com> - 2013-11-25 08:44 -0700

csiph-web