You can check the screen size with
jQuery(window).width() # js and send it to the server via ajax: jQuery.post('{{=URL('....')}}', {'width':jQuery(window).width()}); You can also check device with this logic: http://stackoverflow.com/questions/3514784/what-is-the-best-way-to-detect-a-handheld-device-in-jquery On Sunday, 17 August 2014 23:01:07 UTC-5, lucas wrote: > > hello one and all, > > how can web2py detect a small screen on the client side? i already read > the post https://groups.google.com/forum/#!topic/web2py/cnfpKwNFB4Q and > am using massimo's code to detect a mobile interface. > > but i really need to distinguish like a really small screen like in an > iPod or iPhone versus the larger screens of like a iPad. the small screens > really squish crap together and i would like to adjust for that better. > > thanx in advance, lucas > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.