pop-eye Posted January 18, 2012 Share Posted January 18, 2012 Is it possible to change the client's display resolution using PHP and/or JavaScript? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/255316-changing-display-resolution/ Share on other sites More sharing options...
scootstah Posted January 18, 2012 Share Posted January 18, 2012 You can change the view area of the browser window with Javascript, but you can't actually change their display resolution. Quote Link to comment https://forums.phpfreaks.com/topic/255316-changing-display-resolution/#findComment-1309042 Share on other sites More sharing options...
pop-eye Posted January 18, 2012 Author Share Posted January 18, 2012 What do you mean by "change the view area of the browser window" ? Do you mean using the screen.width and screen.height for a the window.location ? Quote Link to comment https://forums.phpfreaks.com/topic/255316-changing-display-resolution/#findComment-1309048 Share on other sites More sharing options...
scootstah Posted January 18, 2012 Share Posted January 18, 2012 I mean that if you were to unmaximize your browser window and resize it, Javascript can do that. Quote Link to comment https://forums.phpfreaks.com/topic/255316-changing-display-resolution/#findComment-1309051 Share on other sites More sharing options...
pop-eye Posted January 19, 2012 Author Share Posted January 19, 2012 Thanks. But no, I need to change the actual resolution of the display. I know there are ways to get all of the supported resolutions of the display but I do not know how to change the actual display resolution. Let's say from default 800x600 to 1280 x 1024. There has to be some way of doing this programmatically. Thx Quote Link to comment https://forums.phpfreaks.com/topic/255316-changing-display-resolution/#findComment-1309242 Share on other sites More sharing options...
ManiacDan Posted January 19, 2012 Share Posted January 19, 2012 You absolutely cannot do that. Change the hardware settings from a web page? No. What if it's a cell phone with a fixed resolution? What if it's my grandmother, whose monitor doesn't support more than 1024? Quote Link to comment https://forums.phpfreaks.com/topic/255316-changing-display-resolution/#findComment-1309252 Share on other sites More sharing options...
pop-eye Posted January 19, 2012 Author Share Posted January 19, 2012 Okay... If it is not possible, than it is not possible! I understand all the problems that this might cause. But I am working for a private corporation and all devices belong to the corporation and if they want to change the resolution of their displays, they should be able to. The users keep changing the resolution to what they like and our application will not fit or display correctly when the standard resolution was changed. We tried the group policy approach and it did not work that well either. So with all due respect; calm down a little and if you are not a "99%"er, see this issue the capitalistic way. Quote Link to comment https://forums.phpfreaks.com/topic/255316-changing-display-resolution/#findComment-1309260 Share on other sites More sharing options...
scootstah Posted January 19, 2012 Share Posted January 19, 2012 Why not fix your app to work with different resolutions then? Quote Link to comment https://forums.phpfreaks.com/topic/255316-changing-display-resolution/#findComment-1309263 Share on other sites More sharing options...
ManiacDan Posted January 19, 2012 Share Posted January 19, 2012 Fix the app so it works for normal computer resolutions, or lock down the machines properly so they can't change their resolutions. Yes, a company is able to change the resolutions on their own hardware: Send the IT guy to click the button himself, or use Domain rules to lock them to a specific configuration. And it's generally not a good idea to ask someone if you can do something stupid, and then tell them to calm down when they're emphatic. The reason you can't use a web site to change the user's resolution is because 99.999% of web pages are not private intranet pages. The 1% comment is also pretty stupid on a site that was blacked out for SOPA yesterday. I'm just going to ignore you from now on. Quote Link to comment https://forums.phpfreaks.com/topic/255316-changing-display-resolution/#findComment-1309280 Share on other sites More sharing options...
pop-eye Posted January 19, 2012 Author Share Posted January 19, 2012 Thanks. I learned a lot from your advices and this thread in general about the stuff that I did not know before. Quote Link to comment https://forums.phpfreaks.com/topic/255316-changing-display-resolution/#findComment-1309335 Share on other sites More sharing options...
Psycho Posted January 19, 2012 Share Posted January 19, 2012 Thanks. I learned a lot from your advices and this thread in general about the stuff that I did not know before. Why don't you start a new thread on the problems you are having with your current application for certain resolutions. That is something we could most definitely help you with. And, that's the real solution you should be pursuing. If your car makes a knocking sound when it goes over 50 miles per hour you don't take it to the mechanic and ask him to install a govenor to prevent the car from going over 50. Quote Link to comment https://forums.phpfreaks.com/topic/255316-changing-display-resolution/#findComment-1309337 Share on other sites More sharing options...
Pikachu2000 Posted January 19, 2012 Share Posted January 19, 2012 Why not? That's what I did Quote Link to comment https://forums.phpfreaks.com/topic/255316-changing-display-resolution/#findComment-1309359 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.