Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #26580
| From | "Mel Smith" <syntel@cox.net> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: <noscript> problem |
| Date | 2015-01-13 17:48 -0700 |
| Message-ID | <chlsn7Fsqv4U1@mid.individual.net> (permalink) |
| References | <chkuofFkr3cU1@mid.individual.net> <130120151658360636%timstreater@greenbee.net> <chlcmjFooa2U1@mid.individual.net> <m93vpp$soi$1@dont-email.me> |
Jukka said:
> I don't think you took the easy way. It's unnecessarily complicated, and
> unnecessarily risky.
>
>> <!-- in my CSS for this division I use: display:none; which hides this
>> button division. Then below I conditionally display it --->
>
> You are using both JavaScript and CSS when JavaScript would suffice. Even
> in terms of amount of code, it is more complicated than simply using
> <noscript> (just two tags!) by its spec and about as complicated as
> generating the button dynamically. In terms of technologies used, it
> involves an entirely different technology, CSS. And in terms of
> robustness, it means that when CSS is disabled, the button appears even
> when JavaScript is disabled.
>
> So why would you get prepared for the non-availability of a particular
> technology, JavaScript, in a manner that absolutely requires the
> availability of another technology, CSS?
Hi Jukka:
It seems so easy for me.
I added a line in the style section of my page for div#ibuttons:
display:none;
then, made the ibuttons division display in a <script> </script>tag.
That worked correctly and took only a minute or so.
Now when actual highly complex page does load and display, the tiny
addition of those few lines seems to me inconsequential.
What *was* hard was finding out how to *disable scripting* for my current
version of FF so I could run the <noscript> tests !
For those who haven't tried it on late versions of FF, here it is:
In the address bar of FF, one enters: 'about:config', then, after
promising to be careful, go looking for the 'javascript:enabled' setting,
Then, when you find it, right-click it, then toggle its value to 'false'.
*That* took me nearly an hour of googling before I happened on a post that
mentioned about the new way that FF is hiding the disabling of scripting
Thanks for the response.
-Mel
-Mel
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
<noscript> problem "Mel Smith" <syntel@cox.net> - 2015-01-13 09:17 -0700
Re: <noscript> problem Tim Streater <timstreater@greenbee.net> - 2015-01-13 16:58 +0000
Re: <noscript> problem "Mel Smith" <syntel@cox.net> - 2015-01-13 13:15 -0700
Re: <noscript> problem "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2015-01-13 22:39 +0200
Re: <noscript> problem "Mel Smith" <syntel@cox.net> - 2015-01-13 17:48 -0700
Re: <noscript> problem Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-01-14 09:30 -0200
Re: <noscript> problem Tim Streater <timstreater@greenbee.net> - 2015-01-14 12:07 +0000
Re: <noscript> problem Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-01-14 10:50 -0200
Re: <noscript> problem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-14 15:53 +0100
Re: <noscript> problem "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-01-13 18:12 +0100
Re: <noscript> problem "Mel Smith" <syntel@cox.net> - 2015-01-13 13:19 -0700
Re: <noscript> problem Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-01-13 15:18 -0200
Re: <noscript> problem "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2015-01-13 19:30 +0200
Re: <noscript> problem Erwin Moller <erwinmollerusenet@xs4all.nl> - 2015-01-14 15:19 +0100
Re: <noscript> problem "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2015-01-14 17:13 +0200
Re: <noscript> problem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-13 18:48 +0100
Re: <noscript> problem "Mel Smith" <syntel@cox.net> - 2015-01-13 11:58 -0700
Re: <noscript> problem John Harris <niam@jghnorth.org.uk.invalid> - 2015-01-14 14:47 +0000
Re: <noscript> problem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-15 14:49 +0100
Re: <noscript> problem Tim Streater <timstreater@greenbee.net> - 2015-01-15 15:31 +0000
Re: <noscript> problem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-15 17:30 +0100
Re: <noscript> problem Tim Streater <timstreater@greenbee.net> - 2015-01-15 16:38 +0000
Re: <noscript> problem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-15 18:31 +0100
Re: <noscript> problem Tim Streater <timstreater@greenbee.net> - 2015-01-15 17:35 +0000
Re: <noscript> problem John Harris <niam@jghnorth.org.uk.invalid> - 2015-01-15 20:00 +0000
Re: <noscript> problem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-15 22:19 +0100
Re: <noscript> problem John Harris <niam@jghnorth.org.uk.invalid> - 2015-01-16 09:23 +0000
Re: <noscript> problem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-17 12:23 +0100
Re: <noscript> problem John Harris <niam@jghnorth.org.uk.invalid> - 2015-01-17 20:09 +0000
Re: <noscript> problem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-17 22:54 +0100
Re: <noscript> problem John Harris <niam@jghnorth.org.uk.invalid> - 2015-01-18 12:16 +0000
Re: <noscript> problem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-18 17:26 +0100
Re: <noscript> problem Tim Streater <timstreater@greenbee.net> - 2015-01-18 16:50 +0000
Re: <noscript> problem John Harris <niam@jghnorth.org.uk.invalid> - 2015-01-19 10:17 +0000
Re: <noscript> problem Tim Streater <timstreater@greenbee.net> - 2015-01-19 10:40 +0000
Re: <noscript> problem John Harris <niam@jghnorth.org.uk.invalid> - 2015-01-15 19:53 +0000
Re: <noscript> problem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-15 22:17 +0100
Re: <noscript> problem John Harris <niam@jghnorth.org.uk.invalid> - 2015-01-16 09:59 +0000
Re: <noscript> problem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-17 13:02 +0100
Re: <noscript> problem John Harris <niam@jghnorth.org.uk.invalid> - 2015-01-18 16:10 +0000
Re: <noscript> problem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-19 15:10 +0100
Re: <noscript> problem John Harris <niam@jghnorth.org.uk.invalid> - 2015-01-20 10:24 +0000
Re: <noscript> problem Tim Streater <timstreater@greenbee.net> - 2015-01-20 12:09 +0000
csiph-web