You Can't EASILY
Because JS if client side and CFscript is server side.
To do something like this, you have to plan ahead. You would need to detect
the data with a JS like solution and then pass this data somehow (form, url)
to a server side action page that would then store and/or use the data as
you desire. In other words, it's a multiple page process.
HTH
--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, December 05, 2003 7:12 AM
To: CF-Talk
Subject: RE: cfscript?
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/ <http://companion.yahoo.com/>
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

