Mel Smith
1/14/2015 12:49:00 AM
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