Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
There is a function ClientPlatform(), but it just shows browser, not wether it is used as Full Browser or Small Devices.
How to make an object to show on Small Devices only and an other one to hide when viewed on Small Devices?
I haven't used that function so far, but the Help claims
ClientPlatform( )
Returns the name of the platform the client is using, for example, Mobile.iPhone.
All mobile clients start with Mobile, a period sign and the type of mobile device. Clients using AJAX will return Browser.Nameofbrowser, for example Browser.Firefox.
Note!
The function will only return the client type for those clients using the QVPX protocol, that is the mobile clients and the AJAX client.
So it should be possible to tell between an iPhone and - well, I don't know if the other client type identifier strings.
But since I haven't tested, maybe I am wrong here.
I remember some threads that discussed usage of some code to retrieve the screen size, if that is of any help for you.
I have tested ClientPlatform() on QV11 server and iPhone 4S.
Made a QV doc with a text box in it:
=ClientPlatform()
Viewing it by Safari showed browser.safari.mobile in both versions - Full Browser and Small Devices - no difference, however a huge difference in how objects are displayed.
Viewing by iOS QV app ended not even so well: could not open the document - opened Main sheet and then never stopped loading... never saw what this function is returning... if it is.
Looked in search about zooming to screen size by macro, but that does not work in AJAX.
I would like to make chart background dark for small device and iOS app versions, but keep it transparent for Full Browser and Desktop (that has a nice dark background for the whole document).
Is that possible at all?
If not, then this is a "must have" feature!