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


Groups > comp.lang.javascript > #26033 > unrolled thread

responsive design question

Started byAndrew Poulos <ap_prog@hotmail.com>
First post2014-10-30 15:23 +1100
Last post2014-10-30 22:41 +0100
Articles 6 — 2 participants

Back to article view | Back to comp.lang.javascript


Contents

  responsive design question Andrew Poulos <ap_prog@hotmail.com> - 2014-10-30 15:23 +1100
    Re: responsive design question Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-10-30 07:34 +0100
      Re: responsive design question Andrew Poulos <ap_prog@hotmail.com> - 2014-10-30 19:46 +1100
        Re: responsive design question Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-10-30 14:30 +0100
          Re: responsive design question Andrew Poulos <ap_prog@hotmail.com> - 2014-10-31 08:26 +1100
            Re: responsive design question Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-10-30 22:41 +0100

#26033 — responsive design question

FromAndrew Poulos <ap_prog@hotmail.com>
Date2014-10-30 15:23 +1100
Subjectresponsive design question
Message-ID<L9ednUNQhpHBI8zJnZ2dnUVZ8hudnZ2d@westnet.com.au>
The site I'm working on has a menu in the left hand column. When the 
viewport is narrow the menu collapsed to just the title (if you click on 
the title the menu collapses/expands).

By default, the menu is collapsed for a narrow viewport but if 
JavaScript is disabled then the user will have no way to expand the menu.

It means that the CSS media query that collapses the menu should only be 
applied if JavaScript is enabled.

Does this mean that the CSS media query should be dynamically 
created/applied with JavaScript so that if JavaScript is disabled then 
the menu is left expanded?

Andrew Poulos

[toc] | [next] | [standalone]


#26036

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2014-10-30 07:34 +0100
Message-ID<3831270.k1HVqPN0NZ@PointedEars.de>
In reply to#26033
Andrew Poulos wrote:

> By default, the menu is collapsed for a narrow viewport but if
> JavaScript is disabled then the user will have no way to expand the menu.
> 
> It means that the CSS media query that collapses the menu should only be
> applied if JavaScript is enabled.
> 
> Does this mean that the CSS media query should be dynamically
> created/applied with JavaScript so that if JavaScript is disabled then
> the menu is left expanded?

No.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

[toc] | [prev] | [next] | [standalone]


#26038

FromAndrew Poulos <ap_prog@hotmail.com>
Date2014-10-30 19:46 +1100
Message-ID<eZGdnU05C4KcYczJnZ2dnUVZ7omdnZ2d@westnet.com.au>
In reply to#26036
On 30/10/2014 5:34 PM, Thomas 'PointedEars' Lahn wrote:
> Andrew Poulos wrote:
>
>> By default, the menu is collapsed for a narrow viewport but if
>> JavaScript is disabled then the user will have no way to expand the menu.
>>
>> It means that the CSS media query that collapses the menu should only be
>> applied if JavaScript is enabled.
>>
>> Does this mean that the CSS media query should be dynamically
>> created/applied with JavaScript so that if JavaScript is disabled then
>> the menu is left expanded?
>
> No.

Thanks, that was what I was hoping for.

Andrew Poulos

[toc] | [prev] | [next] | [standalone]


#26040

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2014-10-30 14:30 +0100
Message-ID<20217543.odud1v01Dj@PointedEars.de>
In reply to#26038
Andrew Poulos wrote:

> On 30/10/2014 5:34 PM, Thomas 'PointedEars' Lahn wrote:
>> Andrew Poulos wrote:
>>> By default, the menu is collapsed for a narrow viewport but if
>>> JavaScript is disabled then the user will have no way to expand the
>>> menu.
>>>
>>> It means that the CSS media query that collapses the menu should only be
>>> applied if JavaScript is enabled.
>>>
>>> Does this mean that the CSS media query should be dynamically
>>> created/applied with JavaScript so that if JavaScript is disabled then
>>> the menu is left expanded?
>>
>> No.
> 
> Thanks, that was what I was hoping for.

Fascinating.  What have you done instead?

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

[toc] | [prev] | [next] | [standalone]


#26056

FromAndrew Poulos <ap_prog@hotmail.com>
Date2014-10-31 08:26 +1100
Message-ID<7t6dnZYLeoOBM8_JnZ2dnUVZ7qidnZ2d@westnet.com.au>
In reply to#26040
On 31/10/2014 12:30 AM, Thomas 'PointedEars' Lahn wrote:
> Andrew Poulos wrote:
>
>> On 30/10/2014 5:34 PM, Thomas 'PointedEars' Lahn wrote:
>>> Andrew Poulos wrote:
>>>> By default, the menu is collapsed for a narrow viewport but if
>>>> JavaScript is disabled then the user will have no way to expand the
>>>> menu.
>>>>
>>>> It means that the CSS media query that collapses the menu should only be
>>>> applied if JavaScript is enabled.
>>>>
>>>> Does this mean that the CSS media query should be dynamically
>>>> created/applied with JavaScript so that if JavaScript is disabled then
>>>> the menu is left expanded?
>>>
>>> No.
>>
>> Thanks, that was what I was hoping for.
>
> Fascinating.  What have you done instead?

I'm ignoring the issue because I surmised its unlikely that anyone on a 
mobile device has disabled JavaScript (unless of course someone complains).

Andrew Poulos

[toc] | [prev] | [next] | [standalone]


#26057

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2014-10-30 22:41 +0100
Message-ID<2361808.ht2blY7iyd@PointedEars.de>
In reply to#26056
Andrew Poulos wrote:

> On 31/10/2014 12:30 AM, Thomas 'PointedEars' Lahn wrote:
>> Andrew Poulos wrote:
>>> On 30/10/2014 5:34 PM, Thomas 'PointedEars' Lahn wrote:
>>>> Andrew Poulos wrote:
>>>>> Does this mean that the CSS media query should be dynamically
>>>>> created/applied with JavaScript so that if JavaScript is disabled then
>>>>> the menu is left expanded?
>>>> No.
>>> Thanks, that was what I was hoping for.
>> Fascinating.  What have you done instead?
> 
> I'm ignoring the issue because I surmised its unlikely that anyone on a
> mobile device has disabled JavaScript (unless of course someone
> complains).

There are filtering proxies and antivirus apps, though.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web