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


Groups > comp.lang.javascript > #15625

Re: Altering what a class does

From Dr J R Stockton <reply1235@merlyn.demon.co.uk.invalid>
Newsgroups comp.lang.javascript
Subject Re: Altering what a class does
Date 2012-08-30 22:19 +0100
Organization Home
Message-ID <msYmy4Olj9PQFw03@invalid.uk.co.demon.merlyn.invalid> (permalink)
References <ZbqZfMCjRpMQFwp9@invalid.uk.co.demon.merlyn.invalid> <6d02792b-fd42-4d1e-a8ef-723263a280c9@u15g2000yql.googlegroups.com>

Show all headers | View raw


In comp.lang.javascript message <6d02792b-fd42-4d1e-a8ef-723263a280c9@u1
5g2000yql.googlegroups.com>, Wed, 29 Aug 2012 13:33:44, Scott Sauyet
<scott.sauyet@gmail.com> posted:

>Dr J R Stockton wrote:
>> <style type="text/css">
>>  .JAX { display: none }
>> </style>
>>
>> At the press of a button, I wish to alter JAX to { display: block }  -
>> or to just { } or to remove the rule; the button already has an onclick
>> handler.
>>
>> It would save me some cogitation if the necessary code were supplied.
>
>How about something like this?
>
>    .JAX {display: none;}
>    .visibleJAX .JAX {display: block;}
>
>    yourButtonHandler = function() {
>      // ...
>      someTool.addClassName(document.body, "visibleJAX");
>    }
>
>And if you need to undo this, add a function that removes that class
>name as well.  Although the suggestions for how to modify the actual
>CSS rules might work, they are much more heavyweight.
>
>Would that do what you need?

I don't understand how that is supposed to do what I wanted, so I cannot
say.  For example, what is   someTool  ?

Class JAX should not display before the button is pressed.  When the
button is pressed, it must display, from the point of view of software
within the page's include file(s).  That software will, in time, read
what is displayed and render it invisible.  It would be better if the
items so classed never appeared on the screen, except if the included
code failed; but that seems too much to ask for.

-- 
 (c) John Stockton, nr London UK. Mail, see Homepage. BP7, Delphi 3 & 2006.
   <http://www.merlyn.demon.co.uk/> TP/BP/Delphi/&c., FAQqy topics & links;
   <http://www.bancoems.com/CompLangPascalDelphiMisc-MiniFAQ.htm> clpdmFAQ;
   NOT <http://support.codegear.com/newsgroups/>: news:borland.* Guidelines

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


Thread

Altering what a class does Dr J R Stockton <reply1234@merlyn.demon.co.uk.invalid> - 2012-08-20 20:47 +0100
  Re: Altering what a class does dhtml <dhtmlkitchen@gmail.com> - 2012-08-20 16:12 -0700
    Re: Altering what a class does "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-08-21 07:59 +0000
      Re: Altering what a class does Dr J R Stockton <reply1234@merlyn.demon.co.uk.invalid> - 2012-08-23 19:54 +0100
        Re: Altering what a class does "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-08-23 23:01 +0000
  Re: Altering what a class does Dr.Kral@nyc.rr.com - 2012-08-23 13:16 -0400
  Re: Altering what a class does "Tom de Neef" <tdeneef@qolor.nl> - 2012-08-24 19:18 +0200
  Re: Altering what a class does Scott Sauyet <scott.sauyet@gmail.com> - 2012-08-29 13:33 -0700
    Re: Altering what a class does Dr J R Stockton <reply1235@merlyn.demon.co.uk.invalid> - 2012-08-30 22:19 +0100
      Re: Altering what a class does Scott Sauyet <scott.sauyet@gmail.com> - 2012-08-31 20:39 -0700
        Re: Altering what a class does "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-09-01 08:23 +0000
        Re: Altering what a class does Dr J R Stockton <reply1235@merlyn.demon.co.uk.invalid> - 2012-09-02 19:49 +0100
          Re: Altering what a class does Scott Sauyet <scott.sauyet@gmail.com> - 2012-09-03 15:45 -0700
            Re: Altering what a class does Gene Wirchenko <genew@ocis.net> - 2012-09-03 17:13 -0700
            Re: Altering what a class does Dr J R Stockton <reply1236@merlyn.demon.co.uk.invalid> - 2012-09-04 21:10 +0100
            Re: Altering what a class does Dr J R Stockton <reply1236@merlyn.demon.co.uk.invalid> - 2012-09-06 23:37 +0100

csiph-web