Thanks Dave for the script! I got it!
-----Original Message-----
From: Dave Babbitt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 3:06 AM
To: CF-Talk
Subject: RE: URGENT : How to Detect screen resolution in COLDFUSION?
Hi Jaime!
Any of these events (the body tag's onLoad, the form tags onSubmit, or the
submit field's onClick) can be used to set the info you need in the hidden
field:
<HTML>
<HEAD><SCRIPT>
function detectScreenResolution() {
var myResolution = 'height = ' + screen.availHeight
+ ', width = ' +
screen.availWidth;
alert(myResolution);
document.myForm.myHiddenField.value = myResolution;
}
</SCRIPT></HEAD>
<BODY
onLoad="detectScreenResolution()"
><FORM
ACTION="back2TheServer.cfm"
NAME="myForm"
onSubmit="detectScreenResolution()"
>
<INPUT NAME="myHiddenField" TYPE="hidden" VALUE="">
<INPUT TYPE="submit" onClick="detectScreenResolution()">
</FORM></BODY>
</HTML>
Check URL.myHiddenField to see the value. Or, alternately you can POST the
form and pick it up in Form.myHiddenField.
Get it?
Dave
-----Original Message-----
From: JAIME HOI [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 24, 2002 9:26 PM
To: CF-Talk
Subject: RE: URGENT : How to Detect screen resolution in COLDFUSION?
i understand...but how can i set javascript into a coldfusion variable?
-----Original Message-----
From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 10:18 AM
To: CF-Talk
Subject: Re: URGENT : How to Detect screen resolution in COLDFUSION?
The only thing you can do is use Javascript to get the resolution and then
stick it into a variable ... that may work.
Paul Giesenhagen
QuillDesign
http://www.quilldesign.com
SiteDirector v2.0 - Commerce Builder
----- Original Message -----
From: "JAIME HOI" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Sunday, March 24, 2002 8:11 PM
Subject: URGENT : How to Detect screen resolution in COLDFUSION?
> hi
> Anyone have the script to detect screen resolution in coldfusion? i am
> able to detect the screen resolution in javascript but not in coldfusion.
>
>
> "Contentment is not the fulfillment of what you want, it is the
realization
> of how much you already have."
>
>
>
>
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists