NetTalk Central

Author Topic: Tablets  (Read 3067 times)

charl99

  • Full Member
  • ***
  • Posts: 185
    • View Profile
    • Email
Tablets
« 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

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Tablets
« 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.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11263
    • View Profile
Re: Tablets
« 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