|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
Interesting Problem !!
Hi Guys,MILAN MUSHRAN 05/19/04 09:09 A > From: MILAN MUSHRANPhilip Arnold 05/19/04 09:15 A >> I want to detect the resolution of the monitor and use thise valuesd.a.collie 05/19/04 09:12 A Hi Guys, 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. Thanks a lot, Milan ----- Excess quoted text cut - see Original Post for more ----- 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 >> I want to detect the resolution of the monitor and use thise values in CF ? >> How do i do that ? http://www.google.com/search?hl=en&ie=UTF-8&q=Resolution+of+monitor+usin g+Javascript -- dc
|
May 24, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||