You can't

JS is client side
cfscript is server side

-----Original Message-----
From: John Ho [mailto:[EMAIL PROTECTED]
Sent: 05 December 2003 15:01
To: CF-Talk
Subject: cfscript?

hi all
   I have a _javascript_ function checking the size of
window something like this

<SCRIPT LANGUAGE="_javascript_" TYPE="text/_javascript_">
function changeForm( ) {
        if ( screen.availWidth > 800 ) {
            return 800
         }
    else {
            return 1024
         }
}

</SCRIPT>

How do I call this function in CFscript?
Or do you know how to check for the size of window in CFusionMX. Basicly
I need to know what size of window so I would use the cflocation to load
the right form. For example
   <cfif size IS 800>
       <cflocaiton url = "">    <cfelse>
       <cflocaiton url = "">    </cfif>

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to