Hello, I don't know if this email will circulate like I am hoping, but I
am trying to figure out how to pass javascript variables to cold fusion.
Particularly, I am trying to detect resolution in CF, and so far I don't
know of any tags to perform that function.  This is the code I have thus
far, but it does not work because I am trying to pass the variables to
Flash.  Here it is:

========================================================================
====
<!--- Resolution Detection --->
<script language="JavaScript1.2">
document.write("&ResolutionWidth="+screen.width+"&ResolutionHeight="+scr
een.height+"&")
</script>

<!--- Client System Detection --->
<cfset ClientSystem = #HTTP_USER_AGENT#>
<cfoutput>&ClientSystem=#ClientSystem#& </cfoutput>

<!--- Determine Browser --->
<cfset Netscape = findnocase("Netscape",ClientSystem, 1)>
<cfoutput>&Netscape=#Netscape#& </cfoutput>

<cfset Opera = findnocase("Opera",ClientSystem, 1)>
<cfoutput>&Opera=#Opera#& </cfoutput>

<cfset MSIE = findnocase("MSIE",ClientSystem, 1)>
<cfoutput>&MSIE=#MSIE#& </cfoutput>


<cfoutput></cfoutput>

<cfoutput>
&EOF=1&
</cfoutput>
========================================================================
==

Flash takes variables in the form of &VARIABLENAME=VALUE&. I put extra
"&" signs for redundancy. Anyways, the file returns the literal
javascript code without the variables. I need to pass the variables to
CF somehow and then cfoutput it in the variable form indicated above.
Either that or find another way to export the variables. I have also
tried to do a screen detection to redirect to a CF page already with set
variable values, however the javascript fails to execute because Flash
takes the output of The page itself and uses any values it finds as
variables.

If anyone has any idea, please send them to me.  I am using Flash MX and
know that there is a ScreenDetection function, but it doesn't want to
work.  Thanks in advance.


Khoi Le
[EMAIL PROTECTED]


______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to