AnsweredAssumed Answered

Determine a user's screen width and height using IWP

Question asked by NewToFileMaker on Mar 5, 2015
Latest reply on Mar 6, 2015 by philmodjunk

Title

Determine a user's screen width and height using IWP

Post

I've developed a database using FM Advanced Pro 12 and it's hosted using FM Server.

After users are authenticated, they are offered layouts depending on the platform they are accessing the db from (Web, Windows, iOS, iPhone, and iPad).  If they are accessing IWP from a mobile phone, I want to offer a "smaller" set of layouts for them to work with.  The situation is when I use some Get Functions (below) the values returned aren't accurate?

Get (ScreenHeight) - Get (ScreenWidth) - Get (WindowContentHeight) - Get (WindowContentWidth)

The values returned for width are always 640 and the height is 480.  This is consistent regardless of whether a user using Safari or Firefox from a iPhone, iPad, or desktop.

Is there anyway using to return the user's actual screen size from a mobile device when using IWP?

 

Outcomes