Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Resolution of the Monitor

 
Pratik Khetia
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I need to know how do I find the resolution of the end-user's monitor. Is there any system properties for that ??

thanks in advance
Pratik
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're talking about having a browser connect (via HTTP) to your socket listener and you want to find some way to detect their resolution from this, as far as I am aware, the resolution is not a property of HTTP but can be made available by the browser.
In other words, I'm not sure you can simply parse the HTTP data and find the resolution since it doesn't exist there. You can send a HTML page with javascript, the javascript can get the browser info and then send it back to the server side.
The best reference I could find is here
Dave.
 
Fire me boy! Cool, soothing, shameless self promotion:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!