Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: danca Newsgroups: comp.lang.javascript Subject: Re: Change UI layout Date: Fri, 04 Jul 2014 15:09:47 +0200 Organization: A noiseless patient Spider Lines: 33 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 4 Jul 2014 13:09:48 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="2790c26095db4b4ca0765469ca99f0d0"; logging-data="10369"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187lBb4ddqRJOi41mQ/tFh/" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: Cancel-Lock: sha1:H2d6F8fLPg0sCty7a8S2gEVlGWE= Xref: csiph.com comp.lang.javascript:25204 Il 03/07/2014 22:51, Dr J R Stockton ha scritto: > In comp.lang.javascript message , Wed, 2 Jul > 2014 10:05:36, danca posted: > > >> My Android smartphone declares an horizontal resolution of 940 pixels, >> but obviously a standard page is unreadable on the tiny screen, so I >> actually detect the user agent and automatically redirect the mobile >> devices to a dedicated page, instead of rely on the screen resolution. >> An explicit button seems to be the rational choice, however. The iPad >> is identified as a mobile device but the screen is wide enough to >> display standard pages. > > > Do not use just "a" button, if you can do better. Offer choices such as > (but better name,) Vast, Big, Ordinary, Small, Tiny, Auto-Detect > (default). That way, those for whom it works can use the default, and > those for whom it does not have choices available, and if they can do no > better they can revert to default. Consider whether it is wide to make > the choice sticky, so that it holds between successive visits. > Actually I have two home pages for "wide-screen" devices (one of them with the auto-detection script), and one for mobile devices. Upon landing in the homepage, the script could redirect visitors to the "mobile" homepage. Here a button allows to go back to the home (the second one, without the script). This way I don't use cookies and allow for visitors to decide if to stay in the "small-screen" subsystem or go back to the standard page. I will however think about your suggestions, and will explore further what css can do. I surely don't want to change a bit of my standard page to accomodate it for mobile devices. What I am really waiting for, is user's feedback, then I'll see what to do! ;-) Dan