ExtJs 모바일 접속시 다른 URL로 이동

2012. 12. 26. 10:30프로그래밍/ExtJS

요새 대세는 모바일이다.

코드는? 

    Ext.isiPad   = navigator.userAgent.match('iPad') != null;

Ext.isiPhone = navigator.userAgent.match('iPhone') != null;

Ext.Android  = navigator.userAgent.match('Android') != null;

Ext.isMobileDevice = Ext.isiPad || Ext.isiPhone || Ext.Android;

if(Ext.Android)

{

//alert('안드로이드에서 접속');

}


이런식으로 하면 될 듯..


기본값은 내장객체 함수에 값이 들어오니 그거 분석해서 이리저리 나누면 될 듯한데;;

요새 기기들이 다양해서.. 해상도 마다 또 다르게 만들어야 하는건지.. 짜증이 밀려옴.. ㅋㅋㅋ