Re: [WSG] disable user scale for iPhone only, not iPad [SEC=UNCLASSIFIED]

2010-11-20 Thread tee
Thank you, I just got a chance to test it. It does disable the rule. I need to 
run test on zooming, before that, how do you mimic the pinch-to-zoom from a 
simulator?

Double click triggers Copy. At the Simulator menu  Window, Zoom is grayed out 
and the Scale options the same.


tee

On Nov 18, 2010, at 6:22 PM, Bob Watson wrote:

 Something like:
 
 script type=text/javascript
   if(navigator.userAgent.match(/iPad/i) != null) {
   // Is iPad
   document.write(meta content=width=device-width; 
 initial-scale=1.0; maximum-scale=1.0; user-scalable=1; name=viewport)
   } else {
   // Not iPad
   document.write(meta content=width=device-width; 
 initial-scale=1.0; maximum-scale=1.0; user-scalable=0; name=viewport)
   }
 /script
 
 Should work.
 
 -Original Message-
 From: li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On 
 Behalf Of tee
 Sent: Friday, 19 November 2010 12:56 PM
 To: wsg@webstandardsgroup.org
 Subject: [WSG] disable user scale for iPhone only, not iPad
 
 meta content=width=device-width; initial-scale=1.0; maximum-scale=1.0; 
 user-scalable=0; name=viewport
 
 
 With the size of iPad, having zoom feature seems a more sensible approach 
 however the meta tag disables the zooming in iPad too.
 
 
 I'd been searching the web and trying different combinations  but couldn't 
 find anything that would work.
 
 tee
 
 
 
 ***
 List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
 Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
 Help: memberh...@webstandardsgroup.org
 ***
 
 
 
 ***
 List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
 Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
 Help: memberh...@webstandardsgroup.org
 ***
 



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***



Re: [WSG] disable user scale for iPhone only, not iPad [SEC=UNCLASSIFIED]

2010-11-20 Thread tee
Never mind. It's triple click.


tee

On Nov 20, 2010, at 4:47 PM, tee wrote:

 Thank you, I just got a chance to test it. It does disable the rule. I need 
 to run test on zooming, before that, how do you mimic the pinch-to-zoom from 
 a simulator?
 
 Double click triggers Copy. At the Simulator menu  Window, Zoom is grayed 
 out and the Scale options the same.
 
 
 tee



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***



Re: [WSG] disable user scale for iPhone only, not iPad

2010-11-18 Thread David Laakso

On 11/18/10 8:55 PM, tee wrote:

meta content=width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0; 
name=viewport



With the size of iPad, having zoom feature seems a more sensible approach 
however the meta tag disables the zooming in iPad too.


I'd been searching the web and trying different combinations  but couldn't find 
anything that would work.

tee





Dunno. No iPad hereabout. Longshot. Try ?

meta  name=viewportcontent=width=device-width; initial-scale=1.0; 
maximum-scale=1.0;

Best,
~d


--
:: desktop and mobile ::
http://chelseacreekstudio.com/



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***



RE: [WSG] disable user scale for iPhone only, not iPad [SEC=UNCLASSIFIED]

2010-11-18 Thread Bob Watson
Something like:

script type=text/javascript
if(navigator.userAgent.match(/iPad/i) != null) {
// Is iPad
document.write(meta content=width=device-width; 
initial-scale=1.0; maximum-scale=1.0; user-scalable=1; name=viewport)
} else {
// Not iPad
document.write(meta content=width=device-width; 
initial-scale=1.0; maximum-scale=1.0; user-scalable=0; name=viewport)
}
/script

Should work.

-Original Message-
From: li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On 
Behalf Of tee
Sent: Friday, 19 November 2010 12:56 PM
To: wsg@webstandardsgroup.org
Subject: [WSG] disable user scale for iPhone only, not iPad

meta content=width=device-width; initial-scale=1.0; maximum-scale=1.0; 
user-scalable=0; name=viewport


With the size of iPad, having zoom feature seems a more sensible approach 
however the meta tag disables the zooming in iPad too.


I'd been searching the web and trying different combinations  but couldn't find 
anything that would work.

tee



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***