Auto detecting it would be done by running it when a page loads or on a
timer or any other method that doesn’t require the user specifically
initializing it.

Putting it into a cf var...

You would need to send it back to a cf page via a post, get or simply
document.location to a page passing it along in the url and grab it from
there.

Something like...

document.location = 'mypage.cfm?res=' + Screen.width + 'x' + Screen.height;

then mypage.cfm could read the url var 'url.res'

and of course there is always AJAX.


-----Original Message-----
From: T Burke [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 08, 2006 8:54 PM
To: CF-Talk
Subject: Re: CF - Javascript Monitor Resolution help

Good Snake, now. how do I get it to be an
'autodetect' and pased into a CF variable?
I was considering either making it a function
or CFC or placing in the application.cfc file.

dg
>Screen.width
>And
>Screen.height
>
>E.G.
>
><A HREF="javascript:alert('Your resolution is
>'+screen.width+'x'+screen.height);">
>Click for your screen resolution</A> 
>
>--
>Russ
>-----Original Message-----
>From: T Burke [mailto:[EMAIL PROTECTED] 
>Sent: 08 October 2006 21:45
>To: CF-Talk
>Subject: CF - Javascript Monitor Resolution help
>
>This may be OT and if it is, I'll gladly move it to another group.
>I need to be able to determine (via javascript) preferably the user's
>monitor resolution.
>
>I have a client who wishes to have a FLASH animation that fills the browser
>banner area as much as possible so that a user on with a setting of 1024
>wide doesn't have excessive whitespace around an 760 pixel wide banner. 
>
>I have looked around at several javascripts scripts that can do this but...
>1) I admit my complete inadequacy in javascript (I can read it and butch it
>up) and
>2) I can't seem to do a decent job of getting my javascript to send a
>variable value BACK to my CFMX7 page.
>
>Any help? Oh, and I am tossing in some cash for the help (hence why this
may
>be an OT  / Job )! If there is an elegant way of even doing it in Flash,
>that is an option as well....



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255942
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to