View Single Post
Old 11-13-2012, 08:35 AM   PM User | #3
Labrar
New Coder

 
Join Date: Jun 2008
Posts: 61
Thanks: 0
Thanked 12 Times in 12 Posts
Labrar is an unknown quantity at this point
First of all
PHP Code:
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"
should work for the right resolution. (By the way. For a web app you have to use 640 x 920 for Iphones)
It doesn't matter if you convert it with phonegap. Still's just a web app but into the I Store (if apple take it)

Seccond

PHP Code:
document.ontouchstart=document.onmousedown=preventer;
function 
preventer(e){    
                if(!
e){e=window.event;}
        
e.preventDefault();
                
    } 
EDIT:
To make it more realistic use this also
PHP Code:
window.scrollTo(0,0,0); 
So your url bar will dissapear
Labrar is offline   Reply With Quote