page you'll probably see the correct cfset, the only problem is, this is now
in the page on the client and has no effect on the app.
If you need to get the screen res into a CF page look at running a page that
obtains the info like you have already and then sends this back to the
server and continue from there.
Ade
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 29 January 2004 17:12
To: CF-Newbie
Subject: Problem with JavaSc Screen Res
I'm trying to embed a CF command into a _javascript_ command here
The command is:
<SCRIPT language="_javascript_">
<!--
if ((screen.width>=1024) && (screen.height>=768))
{
document.write('<cfset res=1024>');
}
else
{
document.write('<cfset res=800>');
}
//-->
</SCRIPT>
But, it's not working. It ALWAYS uses the bottom value as the res number,
even when the screen is 1024.
Is it that the JS doesn't print out the command as requested ?
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
