Is there any way for ColdFusion to determine the browsers settings (for example, the users screen resolution)?
There is no way of doing this directly with ColdFusion (remember, it runs on the server, not on the client). The following code illustrates how you can obtain the screen width and height using JavaScript. It creates an HTML form, containing hidden form inputs with the screen width and height, and the form is automatically submitted to page2.cfm when the page is loaded. page2.cfm can then refer to those form variables.
Related Questions
- Whats the recommended browser and screen resolution for RapidHI.com? Any special browser settings I should use?
- Whats the recommended browser and screen resolution for myCams.com? Any special browser settings I should use?
- Is there any way for ColdFusion to determine the browsers settings (for example, the users screen resolution)?