NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: charl99 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
-
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.
-
>> 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