Home Forum Download/Upload Links Search

NetTalk User Group

NetTalk User Group Meeting!
Live Webinar!
Saturday Nov. 16 
7am PST
Click Here To Register!
NetTalk Central
July 25, 2014, 05:39:55 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the NetTalk Central Forums!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Tablets  (Read 261 times)
charl99
Full Member
***
Posts: 185


View Profile Email
« on: August 20, 2012, 05:17:01 AM »

Hi guys,

I find that when I use an iPad I want to see less rows in a Browse, like only 5 where as on a desktop with a mouse I'd rather see 15 rows.

So I do the following:

 if instring('IPAD',UPPER(p_web._UserAgent),1,1)
    p_web.ssv('PageRows',5)
.

The question I have is simple, what other things must I check, ie I don't know what other devices act the same.  Can anybody please post here a list of tablet things?

Thanks
Charl
Logged
kevin plummer
Hero Member
*****
Posts: 944



View Profile WWW
« Reply #1 on: August 20, 2012, 06:18:54 PM »

there is a screen size setting variable which may be better to check. you can see it on your web server log after you connect.
Logged
Bruce
Global Moderator
Hero Member
*****
Posts: 6773



View Profile
« Reply #2 on: August 20, 2012, 09:19:16 PM »

>> Can anybody please post here a list of tablet things?

there's not much point in doing that, because the list would be obsolete within a shortspace of time. And your program would be out of date within a few months, never mind a few years.

What you really want to test for is the screen size. there are two session values,

p_web.GSV('_screenWidth_')
p_web.GSV('_screenHeight_')

Which return the current dimensions of the browser. Perhaps you want to make decisions based on that.

Then it gets complicated though, because you have iPads with very different _resolutions_ (although the same size) - ie Retina display.

cheers
Bruce
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Login Form

Welcome Guest.






Lost Password?
No account yet? Register
home contact search contact search