Hobbydesigns,

On 1/29/2004 at 12:12, you wrote:

Hac> <SCRIPT language="_javascript_">
Hac> <!--
if ((screen.width>>=1024) && (screen.height>=768))
Hac> {
Hac> document.write('<cfset res=1024>');
Hac> }
Hac> else
Hac> {
Hac> document.write('<cfset res=800>');
Hac> }
//-->>
Hac> </SCRIPT>

Hac> But, it's not working. It ALWAYS uses the bottom value as the res
Hac> number, even when the screen is 1024. Is it that the JS doesn't
Hac> print out the command as requested ?

My guess is that it's because the _javascript_ (client-side) runs
*after* Cold Fusion has parsed the module (server-side).

Perhaps you have a default setting of res=800 that does get parsed by
CF, which is why it appears that the _javascript_'s else clause is being
processed.

~ Ubqtous ~
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to