Msg#: 4368903 posted 4:51 pm on Oct 3, 2011 (gmt 0)
You won't be able to use these client-side variables in the *same PHP script* that rendered the current page. The best you can achieve is to send the screen data to the server, then the server can use it the *next* time it renders something.
There are lots of nifty tricks you can do, making a second request to the server, to get content that is formatted for a particular screen size, and using DOM techniques to update the current page. It's all possible without a refresh.