> From: MILAN MUSHRAN
>
> I want to detect the resolution of the monitor and use thise
> values in CF ?
> How do i do that ?
>
> I believe I have to detect it using _javascript_, and then
> based on those values, use CSS positioning on the pages.
> Is it possible to use _javascript_ values in CF OR is there
> any other solution to the "Monitor Resolution / CSS
> Positioning" problem.

You have to remember one BIG thing first:
_javascript_ = Client Side
ColdFusion = Server Side

So, understanding that, your JS has to "pass" the information back to
the server, this is usually done with some kind of push-page, so the
_javascript_ grabs the screen resolution, or browser settings, and then
passes them in the URL or in a form to the server, where CF uses them in
the creation of the page

One BIG warning about just using the screen resolution is that more and
more people have multiple screens now - for example, my "screen
resolution" is 2560x1024 (2 screens at 1280x1024)

Also, not everybody leaves their browsers maximized, so you'll have to
take the browser size compared to the screen size...

HTH
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to