NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Poul Jensen on January 08, 2024, 11:33:20 PM
-
In other tools you can dectect whether client is on small or large screen and thus adapt the amount of information shown on a screen.
Either by hiding/unhiding fields or even calling separate procedures.
Is this possible in NT14?
tia
/Poul
-
Hi Poul
I'm pretty sure Bruce will answer: Use CSS - @media
Look here: https://www.w3schools.com/cssref/css3_pr_mediaquery.php
Also try to see how it's used in netweb.css under /styles
Pretty easy once you get the idea
/Niels
-
Hi Niels,
Thanks for the info.
So there is no way to use that or similar logic inside the app?
Cheers
/Poul
-
It is possible to get the current screen size from the two session values _ScreenWidth_ and _ScreenHeight_
But I think you're doing yourself a bj?rnetjeneste by following that road and you're unlikely to avoid using css anyway.
-
Ok noted :)
/Poul
-
for me in login detected the size with this code
IF p_web.gsv('_screenWidth_') < 600 ! is mobile
p_web.ssv('Loc:css',' col-xs-12')
ELSE
p_web.ssv('Loc:css','')
END
-
Use CSS - @media
-
Thanks guys.