Keep in mind that ColdFusion is a Server side language, and JavaScript is
client side.  You can't directly set a client variable to a server variable.
See http://www.cfdev.com/resources/discussion/messages.cfm?id=30 for more
info.

You would have to use javascript to post the information to another page,
you could do this with a hidden frame, or an iFrame so the use wouldn't
notice it.

<script>
hiddenfrm.document.location = "logmyvars.cfm?colorDepth=" +
window.screen.colorDepth "&whatever=" + whatever;
</script>

_______________________________________________
Pete Freitag
CFDEV.COM
Cold Fusion Developer Resources
http://www.cfdev.com/

-----Original Message-----
From: Shai Asher [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 10, 2000 2:36 PM
To: [EMAIL PROTECTED]
Subject: javaScripts And ColdFusion


Hi there

I need to pass JavaScript "Variable",
something like "window.screen.colorDepth" to cfquery

I'm goal is to collect the user window.screen properties so
I can enhance my website according the user preference.
thanks
Shai Asher
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to