Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is there any way for ColdFusion to determine the browsers settings (for example, the users screen resolution)?

0
Posted

Is there any way for ColdFusion to determine the browsers settings (for example, the users screen resolution)?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123