Finding in-calling devic data

Are you using LiveCode to create server scripts or CGIs?

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
christerp1
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 15
Joined: Tue Jan 26, 2010 1:11 am

Finding in-calling devic data

Post by christerp1 » Mon Mar 04, 2013 5:32 pm

Is it possible to detect the browser & device, especially screen size data, when a user opens my web page?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5147
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Finding in-calling devic data

Post by Mark » Mon Mar 11, 2013 11:57 am

Hi,

The headers sent to the server by the browser contain user-agent information, which contains information about the browser and the device. Screen size usually isn't available. You'll have to use CSS to make your website appear correctly on every screensize.

kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply

Return to “CGIs and the Server”